code: def to_tensor(pic, data_format="CHW"):
      array = ivy.array(pic)
      return Tensor(array)
  
file_path: ivy/ivy/functional/frontends/paddle/vision/transforms.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_device_and_dtypes
  from ..tensor.tensor import Tensor
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 11 for calling a global function with example usage: to_tensor(pic, data_format) and returns: Tensor