<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_file(filename):
 """ load an nparray object from a json filename @parameter str filename: path to the file """

    f = open(filename, 'r')
    j = json.load(f)
    f.close()

    return from_dict(j)