code: def test_arrow_array(data):
      arr = pa.array(data)
      expected = pa.array(
          data.to_numpy(object, na_value=None),
          type=pa.from_numpy_dtype(data.dtype.numpy_dtype),
      )
      assert arr.equals(expected)
  
file_path: pandas/pandas/tests/arrays/masked/test_arrow_compat.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.core.arrays.arrow._arrow_utils import pyarrow_array_to_numpy_and_mask
label_desc: Use image node_id 2 for calling a global function with example usage: test_arrow_array(data) without return types