code: def extract_generic(type_: Type, defaults: Tuple = ()) -> tuple:
      try:
          if hasattr(type_, "_special") and type_._special:
              return defaults
          return type_.__args__ or defaults  # type: ignore
      except AttributeError:
          return defaults
  
file_path: ray/python/ray/_private/thirdparty/dacite/types.py
imports: from dataclasses import InitVar
  from typing import Type, Any, Optional, Union, Collection, TypeVar, Dict, Callable, Mapping, List, Tuple
label_desc: Use image node_id 14 for calling a global function with example usage: extract_generic(type_, defaults) and returns: unknown, defaults, defaults