class_docstr: Like weakref.WeakSet, but compares objects with "is".
class_docstr_tok: ["Like","weakref.WeakSet",",","but","compares","objects","with","``","is","''","."]
code: def _wrap_key(self, key):
      return _WeakObjectIdentityWrapper(key)
  
imports: from typing import Any, Set
  import weakref
  from tensorflow.python.util.compat import collections_abc
label_desc: Use image node_id 1 for calling the ObjectIdentityWeakSet obj's underlying member method code with example usage: obj._wrap_key(key) and returns: _WeakObjectIdentityWrapper