code: def numpy_to_tensors(np_arrays):
      """Convert numpy ndarray(s) to tf Tensor(s)."""
      if isinstance(np_arrays, (list, tuple)):
          return type(np_arrays)(
              numpy_to_tensors(array) for array in np_arrays
          )
      elif isinstance(np_arrays, dict):
          return {
              key: numpy_to_tensors(value)
              for key, value in np_arrays.items()
          }
      elif isinstance(np_arrays, np.ndarray):
          return tf.convert_to_tensor(np_arrays)
      else:
          return np_arrays
  
file_path: BigDL/python/nano/src/bigdl/nano/utils/tf/data.py
imports: from typing import Union, Optional, Sequence, Dict
  import numpy
  import tensorflow
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 6 for calling a global function with example usage: numpy_to_tensors(np_arrays) and returns: type, unknown, tf, np_arrays