code: def get_generic_base(cl):
      """If this is a generic class (A[str]), return the generic base for it."""
      if cl.__class__ is _GenericAlias:
          return cl.__origin__
      return None
  
file_path: catboost/contrib/python/attrs/py3/attr/_compat.py
imports: import inspect
  import platform
  import sys
  import threading
  from collections.abc import Mapping, Sequence
  from typing import _GenericAlias
label_desc: Use image node_id 1 for calling a global function with example usage: get_generic_base(cl) and returns: None, cl