code: def is_subclass(sub_type: Type, base_type: Type) -> bool:
      if is_generic_collection(sub_type):
          sub_type = extract_origin_collection(sub_type)
      try:
          return issubclass(sub_type, base_type)
      except TypeError:
          return False
  
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 15 for calling a global function with example usage: is_subclass(sub_type, base_type) and returns: issubclass, False