code: def _dictify(f):
      """A wrapper that converts functions returning
      namedtuples to functions returning dicts while leaving
      functions returning dicts intact
  
      Arguments
      ---------
      f: callable
          a function
  
      Returns
      -------
      result: callable
          a wrapped function"""
      has_asdict = None
  
      def wrapper(*args, **kwargs):
          """The wrapper function"""
          nonlocal has_asdict
          result = f(*args, **kwargs)
          if has_asdict is None:
              has_asdict = hasattr(result, "_asdict")
          return result._asdict() if has_asdict else result
  
      return wrapper
  
imports: import torch
  from joblib import Parallel, delayed
  from speechbrain.utils.data_utils import undo_padding
  from speechbrain.utils.edit_distance import wer_summary, wer_details_for_batch
  from speechbrain.dataio.dataio import merge_char, split_word, extract_concepts_values
  from speechbrain.dataio.wer import print_wer_summary, print_alignments
label_desc: Use image node_id 5 for calling a global function with example usage: _dictify(f) and returns: wrapper, unknown