code: def _dtype_for_scalar(py_type):
      return {
          bool: torch.bool,
          torch.SymBool: torch.bool,
          int: torch.int64,
          torch.SymInt: torch.int64,
          float: torch.float64,
          torch.SymFloat: torch.float64,
          complex: torch.complex128,
      }[py_type]
  
file_path: pytorch/torch/_numpy/_dtypes_impl.py
imports: from collections import namedtuple
  import torch
  from .None import _casting_dicts
label_desc: Use image node_id 8 for calling a global function with example usage: _dtype_for_scalar(py_type) and returns: dict