code: def extract_origin_collection(collection: Type) -> Type:
      try:
          return collection.__extra__
      except AttributeError:
          return collection.__origin__
  
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 2 for calling a global function with example usage: extract_origin_collection(collection) and returns: collection, collection