code: def convert_dtype_to_string(dtype: str) -> core.VarDesc.VarType:
      if dtype in dtype_map:
          return dtype_map[dtype]
      raise TypeError("dtype shoule in %s" % list(dtype_map.keys()))
  
file_path: PaddleHub/paddlehub/compat/paddle_utils.py
imports: import contextlib
  import copy
  from typing import Callable
  from typing import List
  import paddle
  from paddle.framework import core
  from paddlehub.utils.utils import Version
label_desc: Use image node_id 1 for calling a global function with example usage: convert_dtype_to_string(dtype) and returns: dtype_map