code: def test_interval_index_subtype(
      timezone, inclusive_endpoints_fixture
  ):
      # GH#46999
      dates = date_range("2022", periods=3, tz=timezone)
      dtype = f"interval[datetime64[ns, {timezone}], {inclusive_endpoints_fixture}]"
      result = IntervalIndex.from_arrays(
          ["2022-01-01", "2022-01-02"],
          ["2022-01-02", "2022-01-03"],
          closed=inclusive_endpoints_fixture,
          dtype=dtype,
      )
      expected = IntervalIndex.from_arrays(
          dates[:-1], dates[1:], closed=inclusive_endpoints_fixture
      )
      tm.assert_index_equal(result, expected)
  
imports: from functools import partial
  import numpy
  import pytest
  import pandas.util._test_decorators
  from pandas.core.dtypes.common import is_unsigned_integer_dtype
  from pandas.core.dtypes.dtypes import IntervalDtype
  from pandas import Categorical, CategoricalDtype, CategoricalIndex, Index, Interval, IntervalIndex, date_range, notna, period_range, timedelta_range
  import pandas._testing
  from pandas.core.arrays import IntervalArray
  import pandas.core.common
label_desc: Use image node_id 1 for calling a global function with example usage: test_interval_index_subtype(timezone, inclusive_endpoints_fixture) without return types