<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_statements_file(cls, file: str):
 """ Construct an AnalysisGraph object from a pickle file containing a list of INDRA statements. """


        with open(file, "rb") as f:
            sts = pickle.load(f)

        return cls.from_statements(sts)