code: def __eq__(self, other):
      return isinstance(other, self.__class__)
  
imports: from __future__ import absolute_import, division, print_function
label_desc: Use image node_id 5 for calling the Infinity obj's underlying member method code with example usage: obj.__eq__(other) and returns: isinstance