code: def test_reversed_logical_op_with_index_returns_series(self, op):
      # GH#22092, GH#19792
      ser = Series([True, True, False, False])
      idx1 = Index([True, False, True, False])
      idx2 = Index([1, 0, 1, 0])
  
      expected = Series(op(idx1.values, ser.values))
      result = op(ser, idx1)
      tm.assert_series_equal(result, expected)
  
      expected = op(ser, Series(idx2))
      result = op(ser, idx2)
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime
  import operator
  import numpy
  import pytest
  from pandas import DataFrame, Index, Series, bdate_range
  import pandas._testing
  from pandas.core import ops
label_desc: Use image node_id 16 for calling the TestSeriesLogicalOps obj's underlying member method code with example usage: obj.test_reversed_logical_op_with_index_returns_series(op) without return types