code: def _define_guard(type_name):
      """
      Returns True if the given type isn't defined in typing but
      is defined in collections_abc.
  
      Adds the type to __all__ if the collection is found in either
      typing or collection_abc.
      """
      if hasattr(typing, type_name):
          __all__.append(type_name)
          globals()[type_name] = getattr(typing, type_name)
          return False
      elif hasattr(collections_abc, type_name):
          __all__.append(type_name)
          return True
      else:
          return False
  
imports: import abc
  import collections
  import contextlib
  import sys
  import typing
  import collections.abc
  import operator
  from typing import Generic, Callable, TypeVar, Tuple
label_desc: Use image node_id 6 for calling a global function with example usage: _define_guard(type_name) and returns: False, True, False