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_comparison_ops(cls):
      cls.__eq__ = cls._create_comparison_method(operator.eq)
      cls.__ne__ = cls._create_comparison_method(operator.ne)
      cls.__lt__ = cls._create_comparison_method(operator.lt)
      cls.__gt__ = cls._create_comparison_method(operator.gt)
      cls.__le__ = cls._create_comparison_method(operator.le)
      cls.__ge__ = cls._create_comparison_method(operator.ge)
  
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 2 for calling the ExtensionOpsMixin obj's underlying member method code with example usage: obj._add_comparison_ops(cls) without return types