code: def test_interval_range_dtype_basic(start_t, end_t):
      start, end = start_t(24), end_t(42)
      start_val = (
          start.value if isinstance(start, cudf.Scalar) else start
      )
      end_val = end.value if isinstance(end, cudf.Scalar) else end
      pindex = pd.interval_range(
          start=start_val, end=end_val, closed="left"
      )
      gindex = cudf.interval_range(start=start, end=end, 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 4 for calling a global function with example usage: test_interval_range_dtype_basic(start_t, end_t) without return types