code: def test_interval_range_periods_freq_end_dtype(
      periods_t, freq_t, end_t
  ):
      periods, freq, end = periods_t(2), freq_t(3), end_t(10)
      freq_val = freq.value if isinstance(freq, cudf.Scalar) else freq
      end_val = end.value if isinstance(end, cudf.Scalar) else end
      periods_val = (
          periods.value if isinstance(periods, cudf.Scalar) else periods
      )
      pindex = pd.interval_range(
          end=end_val, freq=freq_val, periods=periods_val, closed="left"
      )
      gindex = cudf.interval_range(
          end=end, freq=freq, periods=periods, closed="left"
      )
  
      assert_eq(pindex, gindex)
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_210
  from cudf.core.index import IntervalIndex, interval_range
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 11 for calling a global function with example usage: test_interval_range_periods_freq_end_dtype(periods_t, freq_t, end_t) without return types