code: def test_binary_ops_docstring(frame_or_series, op_name, op):
      # not using the all_arithmetic_functions fixture with _get_opstr
      # as _get_opstr is used internally in the dynamic implementation of the docstring
      klass = frame_or_series
  
      operand1 = klass.__name__.lower()
      operand2 = "other"
      expected_str = " ".join([operand1, op, operand2])
      assert expected_str in getattr(klass, op_name).__doc__
  
      # reverse version of the binary ops
      expected_str = " ".join([operand2, op, operand1])
      assert expected_str in getattr(klass, "r" + op_name).__doc__
  
file_path: pandas/pandas/tests/base/test_misc.py
imports: import sys
  import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas.compat import PYPY
  from pandas.core.dtypes.common import is_dtype_equal, is_object_dtype
  import pandas
  from pandas import Index, Series
label_desc: Use image node_id 2 for calling a global function with example usage: test_binary_ops_docstring(frame_or_series, op_name, op) without return types