<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_dict(doc):
 """Create a model output file object from a dictionary. """

        if 'path' in doc:
            path = doc['path']
        else:
            path = None
        return ModelOutputFile(
            doc['filename'],
            doc['mimeType'],
            path=path
        )