class_docstr: A naming scheme for metrics.
class_docstr_tok: ["A","naming","scheme","for","metrics","."]
code: def spec_pattern(self, input_str: str) -> MetricSpecPattern:
      input_str = input_str.lower()
      if not self.input_str_follows_scheme(input_str):
          raise RuntimeError(
              f"{repr(input_str)} does not follow this scheme."
          )
      return MetricSpecPattern(
          metric_reference=MetricReference(element_name=input_str)
      )
  
file_path: metricflow/metricflow/naming/metric_scheme.py
imports: from __future__ import annotations
  from typing import Optional
  from dbt_semantic_interfaces.references import MetricReference
  from typing_extensions import override
  from metricflow.naming.naming_scheme import QueryItemNamingScheme
  from metricflow.specs.patterns.metric_pattern import MetricSpecPattern
  from metricflow.specs.specs import InstanceSpec, InstanceSpecSet
label_desc: Use image node_id 2 for calling the MetricNamingScheme obj's underlying member method code with example usage: obj.spec_pattern(input_str) and returns: MetricSpecPattern