class_docstr: Outputs group-by-items relevant to a metric based on the input group-by-items.
class_docstr_tok: ["Outputs","group-by-items","relevant","to","a","metric","based","on","the","input","group-by-items","."]
code: def metric_input_location(
      self,
  ) -> Optional[InputMetricDefinitionLocation]:  # noqa: D
      return self._metric_input_location
  
imports: from __future__ import annotations
  from typing import List, Optional, Sequence, Union
  from dbt_semantic_interfaces.references import MetricReference
  from typing_extensions import Self, override
  from metricflow.dag.id_prefix import IdPrefix
  from metricflow.dag.mf_dag import DisplayedProperty
  from metricflow.query.group_by_item.resolution_dag.input_metric_location import InputMetricDefinitionLocation
  from metricflow.query.group_by_item.resolution_dag.resolution_nodes.base_node import GroupByItemResolutionNode, GroupByItemResolutionNodeVisitor
  from metricflow.query.group_by_item.resolution_dag.resolution_nodes.measure_source_node import MeasureGroupByItemSourceNode
  from metricflow.visitor import VisitorOutputT
label_desc: Use image node_id 8 for calling the MetricGroupByItemResolutionNode obj's underlying member method code with example usage: obj.metric_input_location() and returns: self