code: def numpy_to_tensors(np_arrays):
      tensors = tuple(map(lambda x: torch.from_numpy(x), np_arrays))
      if len(tensors) == 1:
          tensors = tensors[0]
      return tensors
  
file_path: BigDL/python/nano/src/bigdl/nano/pytorch/model.py
imports: import torch
  from bigdl.nano.pytorch.lightning import LightningModule
  from bigdl.nano.utils.common import invalidInputError
  from bigdl.nano.utils.common import AcceleratedModel
  import numpy
  from typing import Sequence
label_desc: Use image node_id 8 for calling the AcceleratedLightningModule obj's underlying member method code with example usage: obj.numpy_to_tensors(np_arrays) and returns: tensors