code: def get_type_from_basic_type_str(type_str):
      # default to str
      if not type_str:
          return str
  
      if str(type_str).startswith("list/"):
          v_type = list
      elif str(type_str).startswith("tuple/"):
          v_type = tuple
      elif str(type_str).startswith("dict/"):
          v_type = dict
      else:
          v_type = next(
              (
                  t
                  for t in (bool, int, float, str, list, tuple, dict)
                  if t.__name__ == type_str
              ),
              str,
          )
  
      return v_type
  
imports: import itertools
  import json
  from copy import copy
  from logging import getLogger
  import six
  import yaml
label_desc: Use image node_id 4 for calling a global function with example usage: get_type_from_basic_type_str(type_str) and returns: v_type, str