class_docstr: A base class for linking the operators to their dunder names.
  
  .. note::
  
     You may want to set ``__array_priority__`` if you want your
     implementation to be called when involved in binary operations
     with NumPy arrays.
class_docstr_tok: ["A","base","class","for","linking","the","operators","to","their","dunder","names",".","..","note",":",":","You","may","want","to","set","``","__array_priority__","``","if","you","want","your","implementation","to","be","called","when","involved","in","binary","operations","with","NumPy","arrays","."]
code: def _add_arithmetic_ops(cls):
      cls.__add__ = cls._create_arithmetic_method(operator.add)
      cls.__radd__ = cls._create_arithmetic_method(ops.radd)
      cls.__sub__ = cls._create_arithmetic_method(operator.sub)
      cls.__rsub__ = cls._create_arithmetic_method(ops.rsub)
      cls.__mul__ = cls._create_arithmetic_method(operator.mul)
      cls.__rmul__ = cls._create_arithmetic_method(ops.rmul)
      cls.__pow__ = cls._create_arithmetic_method(operator.pow)
      cls.__rpow__ = cls._create_arithmetic_method(ops.rpow)
      cls.__mod__ = cls._create_arithmetic_method(operator.mod)
      cls.__rmod__ = cls._create_arithmetic_method(ops.rmod)
      cls.__floordiv__ = cls._create_arithmetic_method(
          operator.floordiv
      )
      cls.__rfloordiv__ = cls._create_arithmetic_method(ops.rfloordiv)
      cls.__truediv__ = cls._create_arithmetic_method(operator.truediv)
      cls.__rtruediv__ = cls._create_arithmetic_method(ops.rtruediv)
      if not PY3:
          cls.__div__ = cls._create_arithmetic_method(operator.div)
          cls.__rdiv__ = cls._create_arithmetic_method(ops.rdiv)
  
      cls.__divmod__ = cls._create_arithmetic_method(divmod)
      cls.__rdivmod__ = cls._create_arithmetic_method(ops.rdivmod)
  
imports: import operator
  import numpy
  from pandas.compat import PY3, set_function_name
  from pandas.compat.numpy import function
  from pandas.errors import AbstractMethodError
  from pandas.util._decorators import Appender, Substitution
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.generic import ABCIndexClass, ABCSeries
  from pandas.core.dtypes.missing import isna
  from pandas.core import ops
label_desc: Use image node_id 1 for calling the ExtensionOpsMixin obj's underlying member method code with example usage: obj._add_arithmetic_ops(cls) without return types