docstr: Interval specific tests for is_unique in addition to base class tests
docstr_tok: ["Interval","specific","tests","for","is_unique","in","addition","to","base","class","tests"]
code: def test_is_unique_interval(self, closed):
      """
      Interval specific tests for is_unique in addition to base class tests
      """
      # unique overlapping - distinct endpoints
      idx = IntervalIndex.from_tuples(
          [(0, 1), (0.5, 1.5)], closed=closed
      )
      assert idx.is_unique is True
  
      # unique overlapping - shared endpoints
      idx = IntervalIndex.from_tuples(
          [(1, 2), (1, 3), (2, 3)], closed=closed
      )
      assert idx.is_unique is True
  
      # unique nested
      idx = IntervalIndex.from_tuples([(-1, 1), (-2, 2)], closed=closed)
      assert idx.is_unique is True
  
      # unique NaN
      idx = IntervalIndex.from_tuples([(np.nan, np.nan)], closed=closed)
      assert idx.is_unique is True
  
      # non-unique NaN
      idx = IntervalIndex.from_tuples(
          [(np.nan, np.nan), (np.nan, np.nan)], closed=closed
      )
      assert idx.is_unique is 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 10 for calling the TestIntervalIndex obj's underlying member method code with example usage: obj.test_is_unique_interval(closed) without return types