code: def to_numpy_dtype(dtype):
      """Convert the dtype to numpy dtype
  
      Parameters
      ----------
      dtype
          Input dtype
  
      Returns
      -------
      ret
          The converted dtype
      """
      if dtype is None:
          return None
      if dtype in torch_dtype_to_numpy_dict:
          return torch_dtype_to_numpy_dict[dtype]
      else:
          return np.dtype(dtype)
  
imports: import torch
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: to_numpy_dtype(dtype) and returns: None, torch_dtype_to_numpy_dict, np