code: def test_divide_by_zero(dtype, zero, negative):
      # TODO pending NA/NaN discussion
      # https://github.com/pandas-dev/pandas/issues/32265/
      a = pd.array([0, 1, -1, None], dtype=dtype)
      result = a / zero
      expected = FloatingArray(
          np.array(
              [np.nan, np.inf, -np.inf, np.nan], dtype=dtype.numpy_dtype
          ),
          np.array([False, False, False, True]),
      )
      if negative:
          expected *= -1
      tm.assert_extension_array_equal(result, expected)
  
file_path: pandas/pandas/tests/arrays/floating/test_arithmetic.py
imports: import operator
  import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.core.arrays import FloatingArray
label_desc: Use image node_id 2 for calling a global function with example usage: test_divide_by_zero(dtype, zero, negative) without return types