code: def _convert_list(
      inputs: Sequence[DATA_TYPE],
      types: Union[Sequence[str], str],
      dtypes: Union[Sequence[DTYPE], DTYPE] = None,
  ):
      result = []
      for idx, input_ in enumerate(inputs):
          type_ = (
              types[idx] if isinstance(types, (list, tuple)) else types
          )
          dtype_ = (
              dtypes[idx]
              if isinstance(dtypes, (list, tuple))
              else dtypes
          )
          result.append(convert(input_, type_, dtype_))
      return result
  
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 2 for calling a global function with example usage: _convert_list(inputs, types, dtypes) and returns: result