<s>[INST] Can you please write me a python 3 function to read data from a json file and load it into a dictionary? I want the name of the function to be load(). [/INST] The function reads from a json file and return a dictionary of the data.
```python
import json

def load(filename):
     with open(filename) as json_file:
         data = json.load(json_file)
     return data

data = load("file.json")
print(data)
```</s>\ <s>[INST] Thanks you very much! That was exacly what I needed [/INST] 