class_docstr: Converting model objects to a model reference.
  
  With moving all the model objects to dbt-semantic-interfaces and having *Reference objects
  remain in MetricFlow, all the `Object.reference` properties should be removed from the model
  objects. This means, we would need to replace all usages of `Object.reference` to
  instantiating the *Reference object directly. This class organizes and keeps note of
  where those use cases were.
class_docstr_tok: ["Converting","model","objects","to","a","model","reference",".","With","moving","all","the","model","objects","to","dbt-semantic-interfaces","and","having","*","Reference","objects","remain","in","MetricFlow",",","all","the","`","Object.reference","`","properties","should","be","removed","from","the","model","objects",".","This","means",",","we","would","need","to","replace","all","usages","of","`","Object.reference","`","to","instantiating","the","*","Reference","object","directly",".","This","class","organizes","and","keeps","note","of","where","those","use","cases","were","."]
code: def from_metric(metric: Metric) -> MetricReference:  # noqa: D
      return MetricReference(element_name=metric.name)
  
file_path: metricflow/metricflow/model/object_to_reference.py
imports: from __future__ import annotations
  from dbt_semantic_interfaces.protocols.dimension import Dimension
  from dbt_semantic_interfaces.protocols.entity import Entity
  from dbt_semantic_interfaces.protocols.measure import Measure
  from dbt_semantic_interfaces.protocols.metric import Metric
  from dbt_semantic_interfaces.protocols.semantic_model import SemanticModel
  from dbt_semantic_interfaces.references import DimensionReference, EntityReference, MeasureReference, MetricReference, SemanticModelReference
label_desc: Use image node_id 4 for calling the ObjectToReference obj's underlying member method code with example usage: obj.from_metric(metric) and returns: MetricReference