class_docstr: Container for variables and flags shared across TraceType generation.
code: def alias_global_id(self, global_id: Hashable) -> Hashable:
      if global_id not in self._global_to_local_id:
          self._global_to_local_id[global_id] = len(
              self._global_to_local_id
          )
  
      return self._global_to_local_id[global_id]
  
imports: import collections.abc
  from typing import Any, Dict, Hashable, Optional
  import weakref
  from tensorflow.core.function.trace_type import custom_nest_trace_type
  from tensorflow.core.function.trace_type import default_types
  from tensorflow.core.function.trace_type import util
  from tensorflow.python.types import trace
  from tensorflow.python.util import custom_nest_protocol
label_desc: Use image node_id 2 for calling the InternalTracingContext obj's underlying member method code with example usage: obj.alias_global_id(global_id) and returns: self