code: def test_compare_array(self, data, comparison_op):
      other = pd.array([True] * len(data), dtype="boolean")
      self._compare_other(data, comparison_op, other)
      other = np.array([True] * len(data))
      self._compare_other(data, comparison_op, other)
      other = pd.Series([True] * len(data))
      self._compare_other(data, comparison_op, other)
  
file_path: pandas/pandas/tests/arrays/boolean/test_comparison.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.arrays import BooleanArray
  from pandas.tests.arrays.masked_shared import ComparisonOps
label_desc: Use image node_id 2 for calling the TestComparisonOps obj's underlying member method code with example usage: obj.test_compare_array(data, comparison_op) without return types