code: def test_derived_metric_with_offset_window(  # noqa: D
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      dataflow_plan_builder: DataflowPlanBuilder,
      dataflow_to_sql_converter: DataflowToSqlQueryPlanConverter,
      sql_client: SqlClient,
  ) -> None:
      dataflow_plan = dataflow_plan_builder.build_plan(
          MetricFlowQuerySpec(
              metric_specs=(
                  MetricSpec(element_name="bookings_growth_2_weeks"),
              ),
              time_dimension_specs=(MTD_SPEC_DAY,),
          )
      )
  
      convert_and_check(
          request=request,
          mf_test_session_state=mf_test_session_state,
          dataflow_to_sql_converter=dataflow_to_sql_converter,
          sql_client=sql_client,
          node=dataflow_plan.sink_output_nodes[0].parent_node,
      )
  
imports: from __future__ import annotations
  import datetime
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.implementations.filters.where_filter import PydanticWhereFilter
  from dbt_semantic_interfaces.naming.keywords import METRIC_TIME_ELEMENT_NAME
  from metricflow.dataflow.builder.dataflow_plan_builder import DataflowPlanBuilder
  from metricflow.filters.time_constraint import TimeRangeConstraint
  from metricflow.naming.dunder_scheme import DunderNamingScheme
  from metricflow.plan_conversion.dataflow_to_sql import DataflowToSqlQueryPlanConverter
  from metricflow.protocols.sql_client import SqlClient
  from metricflow.query.query_parser import MetricFlowQueryParser
  from metricflow.specs.column_assoc import ColumnAssociationResolver
  from metricflow.specs.specs import MetricFlowQuerySpec, MetricSpec
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.query_rendering.compare_rendered_query import convert_and_check
  from metricflow.test.time.metric_time_dimension import MTD_SPEC_DAY, MTD_SPEC_MONTH, MTD_SPEC_QUARTER, MTD_SPEC_WEEK, MTD_SPEC_YEAR
label_desc: Use image node_id 3 for calling a global function with example usage: test_derived_metric_with_offset_window(request, mf_test_session_state, dataflow_plan_builder, dataflow_to_sql_converter, sql_client) without return types