code: def _cmp_raises_type_error(self, other):
      """__cmp__ implementation which raises TypeError. Used
      by Approx base classes to implement only == and != and raise a
      TypeError for other comparisons.
  
      Needed in Python 2 only, Python 3 all it takes is not implementing the
      other operators at all.
      """
      __tracebackhide__ = True
      raise TypeError(
          "Comparison operators other than == and != not supported by approx objects"
      )
  
imports: from __future__ import absolute_import
  import math
  import pprint
  import sys
  import warnings
  from decimal import Decimal
  from numbers import Number
  from more_itertools.more import always_iterable
  from six.moves import filterfalse
  from six.moves import zip
  import _pytest._code
  from _pytest import deprecated
  from _pytest.compat import isclass
  from _pytest.compat import Iterable
  from _pytest.compat import Mapping
  from _pytest.compat import Sized
  from _pytest.compat import STRING_TYPES
  from _pytest.outcomes import fail
label_desc: Use image node_id 1 for calling a global function with example usage: _cmp_raises_type_error(other) without return types