code: def get_transducer_key(x):
      """Argument function to customize the sort order (in sorted & max).
      To be used as `key=partial(get_transducer_key)`.
  
      Arguments
      ----------
      x : dict
          one of the items under comparison
  
      Returns
      -------
      float
          Normalized log-score.
      """
      logp_key = x["logp_score"] / len(x["prediction"])
      return logp_key
  
file_path: speechbrain/speechbrain/decoders/transducer.py
imports: import torch
  from functools import partial
label_desc: Use image node_id 1 for calling a global function with example usage: get_transducer_key(x) and returns: logp_key