code: def _get_subtypes(type_: Any) -> Any:
      # TODO(@tvm-team): This is hot fix to support subtle difference between python versions
      #                  Would be nice to find a better way if possible
      if hasattr(typing, "_SpecialGenericAlias"):
          if hasattr(typing, "get_args"):
              subtypes = typing.get_args(type_)  # type: ignore
          else:
              subtypes = type_.__args__
      else:
          subtypes = type_.__args__
      return subtypes
  
file_path: tvm/python/tvm/tir/schedule/_type_checker.py
imports: import collections
  import collections.abc
  import functools
  import inspect
  from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
  import typing
label_desc: Use image node_id 2 for calling a global function with example usage: _get_subtypes(type_) and returns: subtypes