code: def create_typestr2type_dicts(
      dont_include_in_type2typestr=["lambda"],
  ):
      """Return dictionaries mapping lower case typename (e.g. 'tuple') to type
      objects from the types package, and vice versa."""
      typenamelist = [
          tname for tname in dir(types) if tname.endswith("Type")
      ]
      typestr2type, type2typestr = {}, {}
  
      for tname in typenamelist:
          name = tname[
              :-4
          ].lower()  # Cut 'Type' off the end of the name
          obj = getattr(types, tname)
          typestr2type[name] = obj
          if name not in dont_include_in_type2typestr:
              type2typestr[obj] = name
      return typestr2type, type2typestr
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/wildcard.py
imports: import re
  import types
  from IPython.utils.dir2 import dir2
label_desc: Use image node_id 1 for calling a global function with example usage: create_typestr2type_dicts(dont_include_in_type2typestr) and returns: typestr2type,  type2typestr