code: def parse_hypothesis(hyp, char_list):
      """Parse hypothesis.
  
      Args:
          hyp (list[dict[str, Any]]): Recognition hypothesis.
          char_list (list[str]): List of characters.
  
      Returns:
          tuple(str, str, str, float)
  
      """
      # remove sos and get results
      tokenid_as_list = list(map(int, hyp["yseq"][1:]))
      token_as_list = [char_list[idx] for idx in tokenid_as_list]
      score = float(hyp["score"])
  
      # convert to string
      tokenid = " ".join([str(idx) for idx in tokenid_as_list])
      token = " ".join(token_as_list)
      text = "".join(token_as_list).replace("<space>", " ")
  
      return text, token, tokenid, score
  
imports: import argparse
  import copy
  import json
  import logging
  import os
  import shutil
  import tempfile
  import numpy
  import torch
label_desc: Use image node_id 16 for calling a global function with example usage: parse_hypothesis(hyp, char_list) and returns: text,  token,  tokenid,  score