class_docstr: Wraps an object, mapping __eq__ on wrapper to "is" on wrapped.
  
  Since __eq__ is based on object identity, it's safe to also define __hash__
  based on object ids. This lets us add unhashable types like trackable
  _ListWrapper objects to object-identity collections.
class_docstr_tok: ["Wraps","an","object",",","mapping","__eq__","on","wrapper","to","``","is","''","on","wrapped",".","Since","__eq__","is","based","on","object","identity",",","it","'s","safe","to","also","define","__hash__","based","on","object","ids",".","This","lets","us","add","unhashable","types","like","trackable","_ListWrapper","objects","to","object-identity","collections","."]
code: def _assert_type(self, other):
      if not isinstance(other, _ObjectIdentityWrapper):
          raise TypeError(
              "Cannot compare wrapped object with unwrapped object"
          )
  
imports: import collections
  from typing import Any, Set
  import weakref
label_desc: Use image node_id 3 for calling the _ObjectIdentityWrapper obj's underlying member method code with example usage: obj._assert_type(other) without return types