code: def from_api_repr(cls, resource):
          
          ref = cls()
          ref._proto = json_format.ParseDict(resource, types.ModelReference())
          return ref
docs: Factory:  construct a model reference given its API representation
  
          Args:
              resource (Dict[str, object]):
                  Model reference representation returned from the API
  
          Returns:
              google.cloud.bigquery.model.ModelReference:
                  Model reference parsed from ``resource``.