code: def pack_state(sentence_state, *args):
      # don't change dict reference so parent can reuse.  Ok to lose reference for list
      for keyi, key in enumerate(sentence_keys):
          if isinstance(sentence_state[key], list):
              sentence_state[key] = args[keyi]
          else:
              sentence_state[key] = args[keyi]
      return sentence_state
  
file_path: h2ogpt/src/tts_sentence_parsing.py
imports: import textwrap
  import re
  from src.utils import flatten_list, have_emoji, have_langid
label_desc: Use image node_id 4 for calling a global function with example usage: pack_state(sentence_state) and returns: sentence_state