code: def test_compare_list_like_interval(
      self, op, interval_array, interval_constructor
  ):
      # same endpoints
      other = interval_constructor(
          interval_array.left, interval_array.right
      )
      result = op(interval_array, other)
      expected = self.elementwise_comparison(op, interval_array, other)
      tm.assert_equal(result, expected)
  
      # different endpoints
      other = interval_constructor(
          interval_array.left[::-1], interval_array.right[::-1]
      )
      result = op(interval_array, other)
      expected = self.elementwise_comparison(op, interval_array, other)
      tm.assert_equal(result, expected)
  
      # all nan endpoints
      other = interval_constructor([np.nan] * 4, [np.nan] * 4)
      result = op(interval_array, other)
      expected = self.elementwise_comparison(op, interval_array, other)
      tm.assert_equal(result, expected)
  
imports: import operator
  import numpy
  import pytest
  from pandas.core.dtypes.common import is_list_like
  import pandas
  from pandas import Categorical, Index, Interval, IntervalIndex, Period, Series, Timedelta, Timestamp, date_range, period_range, timedelta_range
  import pandas._testing
  from pandas.core.arrays import BooleanArray, IntervalArray
  from pandas.tests.arithmetic.common import get_upcast_box
label_desc: Use image node_id 8 for calling the TestComparison obj's underlying member method code with example usage: obj.test_compare_list_like_interval(op, interval_array, interval_constructor) without return types