code: def _convert_dict(
      inputs: Dict[str, DATA_TYPE],
      types: Union[Dict[str, str], str],
      dtypes: Union[Dict[str, DTYPE], DTYPE] = None,
  ):
      result = {}
      for name, input_ in inputs.items():
          type_ = types[name] if isinstance(types, dict) else types
          dtype_ = dtypes[name] if isinstance(dtypes, dict) else dtypes
          result[name] = 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 3 for calling a global function with example usage: _convert_dict(inputs, types, dtypes) and returns: result