code: def persistent_id(self, obj):
          
          if getattr(obj, '_PERSIST_REFERENCES', None):
              objid = id(obj)
              obj._persistent_ref = objid
              _weakmemos[objid] = obj
          return None
docs: Tags objects with a persistent ID, but do NOT emit it