code: def tensor(
      data,
      *,
      dtype=None,
      device=None,
      requires_grad=False,
      pin_memory=False,
  ):
      return ivy.array(data, dtype=dtype, device=device)
  
imports: import ivy
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back, to_ivy_shape
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  import ivy.functional.frontends.torch
label_desc: Use image node_id 23 for calling a global function with example usage: tensor(data) and returns: ivy