code: def test_missing_values(self, closed):
      idx = Index(
          [
              np.nan,
              Interval(0, 1, closed=closed),
              Interval(1, 2, closed=closed),
          ]
      )
      idx2 = IntervalIndex.from_arrays(
          [np.nan, 0, 1], [np.nan, 1, 2], closed=closed
      )
      assert idx.equals(idx2)
  
      msg = (
          "missing values must be missing in the same location both left "
          "and right sides"
      )
      with pytest.raises(ValueError, match=msg):
          IntervalIndex.from_arrays(
              [np.nan, 0, 1], np.array([0, 1, 2]), closed=closed
          )
  
      tm.assert_numpy_array_equal(
          isna(idx), np.array([True, False, False])
      )
  
imports: from itertools import permutations
  import re
  import numpy
  import pytest
  import pandas
  from pandas import Index, Interval, IntervalIndex, Timedelta, Timestamp, date_range, interval_range, isna, notna, timedelta_range
  import pandas._testing
  import pandas.core.common
label_desc: Use image node_id 23 for calling the TestIntervalIndex obj's underlying member method code with example usage: obj.test_missing_values(closed) without return types