code: def alias(*names):
      """
      Stores the decorated function or class in the global aliases table under the given names and as the `__aliases__`
      member of the decorated object. This new member will contain all alias names declared for that object.
      """
  
      def _outer(obj):
          for n in names:
              with alias_lock:
                  GlobalAliases[n] = obj
  
          # set the member list __aliases__ to contain the alias names defined by the decorator for `obj`
          obj.__aliases__ = getattr(obj, "__aliases__", ()) + tuple(
              names
          )
  
          return obj
  
      return _outer
  
imports: from __future__ import annotations
  import importlib
  import inspect
  import sys
  import threading
label_desc: Use image node_id 1 for calling a global function with example usage: alias() and returns: _outer, obj