docstr: Return the basic types supported by Argument casting
  :param as_str: if True, return string cast of the types
  :return: List of type objects supported for auto casting (serializing to string)
docstr_tok: ["Return","the","basic","types","supported","by","Argument","casting",":","param","as_str",":","if","True",",","return","string","cast","of","the","types",":","return",":","List","of","type","objects","supported","for","auto","casting","(","serializing","to","string",")"]
code: def get_supported_types(cls, as_str=False):
      # type: (bool) -> Union[Type, Tuple[str]]
      """
      Return the basic types supported by Argument casting
      :param as_str: if True, return string cast of the types
      :return: List of type objects supported for auto casting (serializing to string)
      """
      supported_types = (int, float, bool, str, list, tuple, Enum)
      if as_str:
          return tuple([str(t) for t in supported_types])
  
      return supported_types
  
imports: import yaml
  from enum import Enum
  from inspect import isfunction
  from six import PY2
  from argparse import _StoreAction, ArgumentError, _StoreConstAction, _SubParsersAction, _AppendAction, SUPPRESS
  from copy import copy
  from typing import Tuple, Type, Union
  from ...backend_api import Session
  from ...binding.args import call_original_argparser
  from ...utilities.proxy_object import get_type_from_basic_type_str
label_desc: Use image node_id 14 for calling the _Arguments obj's underlying member method code with example usage: obj.get_supported_types(cls, as_str) and returns: supported_types, tuple