code: def test_get_measures_for_metrics(
      mf_client: MetricFlowClient,
  ) -> None:  # noqa: D
      measures = mf_client.engine.get_measures_for_metrics(["bookings"])
      assert len(measures) == 1
      measure = measures[0]
      assert measure.name == "bookings"
      assert measure.agg_time_dimension == "ds"
  
      # Multiple metrics
      measures = mf_client.engine.get_measures_for_metrics(
          ["bookings", "revenue"]
      )
      assert len(measures) == 2
      assert {measure.name for measure in measures} == {
          "bookings",
          "txn_revenue",
      }
      assert {measure.agg_time_dimension for measure in measures} == {
          "ds"
      }
  
      # Derived metric with multiple metric inputs
      measures = mf_client.engine.get_measures_for_metrics(
          ["views_times_booking_value"]
      )
      assert len(measures) == 2
      assert {measure.name for measure in measures} == {
          "views",
          "booking_value",
      }
      assert {measure.agg_time_dimension for measure in measures} == {
          "ds"
      }
  
      # Ratio metric with multiple measure inputs
      measures = mf_client.engine.get_measures_for_metrics(
          ["bookings_per_booker"]
      )
      assert len(measures) == 2
      assert {measure.name for measure in measures} == {
          "bookings",
          "bookers",
      }
      assert {measure.agg_time_dimension for measure in measures} == {
          "ds"
      }
  
file_path: metricflow/metricflow/test/api/test_metricflow_client.py
imports: from __future__ import annotations
  from dbt_semantic_interfaces.validations.validator_helpers import SemanticManifestValidationResults
  from metricflow.api.metricflow_client import MetricFlowClient
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.engine.models import Dimension, Metric
  from metricflow.random_id import random_id
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_measures_for_metrics(mf_client) without return types