code: def from_dict(doc):
          
          if 'path' in doc:
              path = doc['path']
          else:
              path = None
          return ModelOutputFile(
              doc['filename'],
              doc['mimeType'],
              path=path
          )
docs: Create a model output file object from a dictionary.