code: def is_scalar(x):
      return isinstance(x, _SCALAR_TYPES)
  
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 6 for calling a global function with example usage: is_scalar(x) and returns: isinstance