code: def is_scalar(x):
      """Check if the input is a scalar."""
      return isinstance(x, Number) or (
          torch.is_tensor(x) and x.dim() == 0
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: is_scalar(x) and returns: unknown