code: def _get_or_create_stack(name):
    
    stack = getattr(_LOCAL_STACKS, name, None)
    if stack is None:
      stack = []
      setattr(_LOCAL_STACKS, name, stack)
    return stack
docs: Returns a thread local stack uniquified by the given name.