code: def prepare_tensor_dict(g, data, name):
      """Convert a dictionary of data to a dictionary of ID tensors.
  
      Calls ``prepare_tensor`` on each key-value pair.
  
      Parameters
      ----------
      g : DGLGraph
          Graph.
      data : dict[str, (int, iterable of int, tensor)]
          Data dict.
      name : str
          Name of the data.
  
      Returns
      -------
      dict[str, tensor]
      """
      return {
          key: prepare_tensor(g, val, '{}["{}"]'.format(name, key))
          for key, val in data.items()
      }
  
file_path: dgl/python/dgl/utils/checks.py
imports: from __future__ import absolute_import, division
  from collections.abc import Mapping
  from ..None import backend
  from .._ffi.function import _init_api
  from ..base import DGLError
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_tensor_dict(g, data, name) and returns: unknown