code: def _str_to_pythontype(typestring):
      """Returns a Python type from the normalized string representation of a
      Perspective type, i.e. from Perspective.js.
      """
      mapping = {
          "boolean": bool,
          "float": float,
          "integer": int,
          "date": date,
          "datetime": datetime,
          "string": str,
          "object": object,
      }
  
      return _extract_type(typestring, mapping)
  
file_path: perspective/python/perspective/perspective/table/_utils.py
imports: import re
  from datetime import date, datetime
  from functools import partial
  from .libpsppy import t_dtype
label_desc: Use image node_id 4 for calling a global function with example usage: _str_to_pythontype(typestring) and returns: _extract_type