code: def test_logical_ops_bool_dtype_with_ndarray(self):
      # make sure we operate on ndarray the same as Series
      left = Series([True, True, True, False, True])
      right = [True, False, None, True, np.nan]
  
      msg = (
          r"Logical ops \(and, or, xor\) between Pandas objects and "
          "dtype-less sequences"
      )
  
      expected = Series([True, False, False, False, False])
      with tm.assert_produces_warning(FutureWarning, match=msg):
          result = left & right
      tm.assert_series_equal(result, expected)
      result = left & np.array(right)
      tm.assert_series_equal(result, expected)
      result = left & Index(right)
      tm.assert_series_equal(result, expected)
      result = left & Series(right)
      tm.assert_series_equal(result, expected)
  
      expected = Series([True, True, True, True, True])
      with tm.assert_produces_warning(FutureWarning, match=msg):
          result = left | right
      tm.assert_series_equal(result, expected)
      result = left | np.array(right)
      tm.assert_series_equal(result, expected)
      result = left | Index(right)
      tm.assert_series_equal(result, expected)
      result = left | Series(right)
      tm.assert_series_equal(result, expected)
  
      expected = Series([False, True, True, True, True])
      with tm.assert_produces_warning(FutureWarning, match=msg):
          result = left ^ right
      tm.assert_series_equal(result, expected)
      result = left ^ np.array(right)
      tm.assert_series_equal(result, expected)
      result = left ^ Index(right)
      tm.assert_series_equal(result, expected)
      result = left ^ Series(right)
      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 10 for calling the TestSeriesLogicalOps obj's underlying member method code with example usage: obj.test_logical_ops_bool_dtype_with_ndarray() without return types