code: def str_to_dtype(dtype: Union[str, torch.dtype]) -> torch.dtype:
      """Convert a data type name to a PyTorch data type"""
      if isinstance(dtype, torch.dtype):
          return dtype
      name = str(dtype).strip().lower()
      if name.startswith("torch."):
          name = name.replace("torch.", "", 1)
      if name.startswith("fp"):
          name = name.replace("fp", "float", 1)
      if name not in _str_to_dtype:
          raise ValueError(f"Unrecognized dtype ({name})")
      return _str_to_dtype[name]
  
label_desc: Use image node_id 1 for calling a global function with example usage: str_to_dtype(dtype) and returns: _str_to_dtype, dtype