code: def _dtype_for_scalar_or_tensor(x):
      return (
          x.dtype
          if isinstance(x, torch.Tensor)
          else _dtype_for_scalar(type(x))
      )
  
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 9 for calling a global function with example usage: _dtype_for_scalar_or_tensor(x) and returns: unknown