code: def _dtype_to_str(dtype):
      """Returns the normalized string representation of a Perspective type,
      compatible with Perspective.js.
      """
      mapping = {
          t_dtype.DTYPE_BOOL: "boolean",
          t_dtype.DTYPE_FLOAT32: "float",
          t_dtype.DTYPE_FLOAT64: "float",
          t_dtype.DTYPE_INT8: "integer",
          t_dtype.DTYPE_INT16: "integer",
          t_dtype.DTYPE_INT32: "integer",
          t_dtype.DTYPE_INT64: "integer",
          t_dtype.DTYPE_DATE: "date",
          t_dtype.DTYPE_TIME: "datetime",
          t_dtype.DTYPE_STR: "string",
      }
  
      return _extract_type(dtype, 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 3 for calling a global function with example usage: _dtype_to_str(dtype) and returns: _extract_type