code: def test_interval_constructor_default_closed():
      idx = cudf.IntervalIndex([pd.Interval(0, 1)])
      assert idx.closed == "right"
      assert idx.dtype.closed == "right"
  
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 1 for calling a global function with example usage: test_interval_constructor_default_closed() without return types