class_docstr: Implements rich operators for an object.
code: def _compare(self, other, method):
      try:
          return method(self._cmpkey(), other._cmpkey())
      except (AttributeError, TypeError):
          # _cmpkey not implemented, or return different type,
          # so I can't compare with "other". Try the reverse comparison
          return NotImplemented
  
imports: from __future__ import absolute_import
  import sys
  from textblob.compat import basestring, implements_to_string, PY2, binary_type
label_desc: Use image node_id 1 for calling the ComparableMixin obj's underlying member method code with example usage: obj._compare(other, method) and returns: method, NotImplemented