code: def is_scalar(other: Any) -> bool:
      return isinstance(other, int) or isinstance(other, float)
  
imports: from typing import Any, Optional, Tuple
  import torch
  import torch_sparse.typing
  from torch_sparse.typing import pyg_lib
label_desc: Use image node_id 2 for calling a global function with example usage: is_scalar(other) and returns: unknown