code: def test_logical_ops_with_index(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(ser[n], idx1[n]) for n in range(len(ser))])
  
      result = op(ser, idx1)
      tm.assert_series_equal(result, expected)
  
      expected = Series(
          [op(ser[n], idx2[n]) for n in range(len(ser))], dtype=bool
      )
  
      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 14 for calling the TestSeriesLogicalOps obj's underlying member method code with example usage: obj.test_logical_ops_with_index(op) without return types