code: def _update(code, _update, _app, _tips):
      if not _update:
          return code
  
      _update_list = [l.strip() for l in _update.split(",")]
      for l in _update_list:
          try:
              variant, comment = l.split("#")
          except ValueError:
              variant = l
              comment = None
  
          try:
              keys, value = variant.split("=")
              run_update(code, keys, value, comment, _app)
          except ValueError:
              print(
                  'Invalid format. print command "--help" get more info.'
              )
              sys.exit(1)
  
      return code
  
imports: import sys
  import argparse
  from argparse import Namespace
  import os, shutil
  import getopt
  from ruamel.yaml import YAML, yaml_object
  from ruamel.yaml.comments import CommentedSeq, CommentedMap
  from ruamel.yaml.tokens import CommentToken
label_desc: Use image node_id 12 for calling a global function with example usage: _update(code, _update, _app, _tips) and returns: code, code