code: def tensor(x: Any, dtype: torch.dtype, device: torch.device):
      return (
          None
          if x is None
          else torch.tensor(x, device=device).to(dtype)
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: tensor(x, dtype, device) and returns: unknown