code: def test_interval_index_repr():
      pi = pd.Index(
          [
              np.nan,
              pd.Interval(2.0, 3.0, closed="right"),
              pd.Interval(3.0, 4.0, closed="right"),
          ]
      )
      gi = cudf.from_pandas(pi)
  
      assert repr(pi) == repr(gi)
  
imports: import textwrap
  import cupy
  import numpy
  import pandas
  import pytest
  from hypothesis import given, settings, strategies
  import cudf
  from cudf.testing import _utils
  from cudf.utils.dtypes import np_dtypes_to_pandas_dtypes
label_desc: Use image node_id 31 for calling a global function with example usage: test_interval_index_repr() without return types