code: def to_delta_state(line):
      delta_state = {"inform": {}, "request": {}}
      try:
          if (
              line == "None"
              or line.strip() == ""
              or line.strip() == ";"
          ):
              return delta_state
          inform, request = [
              [y.strip() for y in x.strip().split(",")]
              for x in line.split(";")
          ]
          inform_pairs = {}
          for i in inform:
              try:
                  k, v = i.split(":")
                  inform_pairs[k.strip()] = v.strip()
              except:
                  pass
          delta_state = {"inform": inform_pairs, "request": request}
      except:
          pass
      finally:
          return delta_state
  
imports: from subprocess import Popen, PIPE, CalledProcessError
  import json
  from text.torchtext.datasets.generic import Query
  import logging
  import os
  import re
  import string
  import numpy
  import collections
  from multiprocessing import Pool, cpu_count
  from contextlib import closing
  from pyrouge import Rouge155
  from sacrebleu import corpus_bleu
label_desc: Use image node_id 16 for calling a global function with example usage: to_delta_state(line) and returns: delta_state, delta_state