code: def test_compare_scalar_na(
      self, op, interval_array, nulls_fixture, box_with_array
  ):
      box = box_with_array
      obj = tm.box_expected(interval_array, box)
      result = op(obj, nulls_fixture)
  
      if nulls_fixture is pd.NA:
          # GH#31882
          exp = np.ones(interval_array.shape, dtype=bool)
          expected = BooleanArray(exp, exp)
      else:
          expected = self.elementwise_comparison(
              op, interval_array, nulls_fixture
          )
  
      if not (box is Index and nulls_fixture is pd.NA):
          # don't cast expected from BooleanArray to ndarray[object]
          xbox = get_upcast_box(obj, nulls_fixture, True)
          expected = tm.box_expected(expected, xbox)
  
      tm.assert_equal(result, expected)
  
      rev = op(nulls_fixture, obj)
      tm.assert_equal(rev, 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 6 for calling the TestComparison obj's underlying member method code with example usage: obj.test_compare_scalar_na(op, interval_array, nulls_fixture, box_with_array) without return types