code: def _get_current_dtype(
      dtype: Optional[torch.dtype] = None,
  ) -> torch.dtype:
      if not torch.is_autocast_enabled():
          return torch.float or dtype
      else:
          return torch.get_autocast_gpu_dtype()
  
imports: from typing import Optional, Sequence
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: _get_current_dtype(dtype) and returns: unknown, torch