code: def test_binary_input_dispatch_binop(dtype):
      # binop ufuncs are dispatched to our dunder methods.
      values = np.array([[-1, -1], [1, 1]], dtype="int64")
      df = pd.DataFrame(
          values, columns=["A", "B"], index=["a", "b"]
      ).astype(dtype=dtype)
      result = np.add(df, df)
      expected = pd.DataFrame(
          np.add(values, values), index=df.index, columns=df.columns
      ).astype(dtype)
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/frame/test_ufunc.py
imports: from functools import partial
  import re
  import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.api.types import is_extension_array_dtype
label_desc: Use image node_id 3 for calling a global function with example usage: test_binary_input_dispatch_binop(dtype) without return types