code: def test_reflected_comparison_with_scalars(self):
      # GH8658
      cat = Categorical([1, 2, 3], ordered=True)
      tm.assert_numpy_array_equal(
          cat > cat[0], np.array([False, True, True])
      )
      tm.assert_numpy_array_equal(
          cat[0] < cat, np.array([False, True, True])
      )
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, Series, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 5 for calling the TestCategoricalOps obj's underlying member method code with example usage: obj.test_reflected_comparison_with_scalars() without return types