<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load(cls, pipeline_name, frequency, subject_id, visit_id, from_study, path):
 """ Loads a saved provenance object from a JSON file Parameters path : str Path to the provenance file frequency : str The frequency of the record subject_id : str | None The subject ID of the provenance record visit_id : str | None The visit ID of the provenance record from_study : str Name of the study the derivatives were created for Returns ------- record : Record The loaded provenance record """

        with open(path) as f:
            prov = json.load(f)
        return Record(pipeline_name, frequency, subject_id, visit_id,
                      from_study, prov)