code: def pretty_print_type(typ):
      typ_str = str(typ)
      if "'" in typ_str:  # for class wrapper
          typ_str = typ_str.split("'")[1]
      return escape(typ_str)
  
imports: from rich.markup import escape
  from rich.tree import Tree
label_desc: Use image node_id 1 for calling a global function with example usage: pretty_print_type(typ) and returns: escape