code: def load_dict(filename, group):
      """
      Recursively load a dict from an hdf5 group in a file.
  
      Parameters
      ----------
      filename : str
          full path to the hdf5 file
  
      group : str
          Name of the group that contains the dict to load
  
      Returns
      -------
      d : dict
          dict loaded from the specified hdf5 group.
      """
  
      with h5py.File(filename, "r") as h5file:
          return _dicts_from_group(h5file, "{}/".format(group))
  
file_path: tslearn/tslearn/hdftools/hdftools.py
imports: import h5py
  import os
  import numpy
  import traceback
  from warnings import warn
label_desc: Use image node_id 3 for calling a global function with example usage: load_dict(filename, group) and returns: _dicts_from_group