code: def update_yaml(_args):
      _in_file, _u, _a, _i, _o, _tips = _get_update_par(_args)
  
      if not _in_file or not _u:
          print(_tips)
          sys.exit(1)
  
      code = _load(_in_file)
  
      if _i and _o:
          print(_tips)
          sys.exit(1)
  
      _update(code, _u, _a, _tips)
  
      if _i:
          _backup(_in_file)
          _save(code, _in_file)
      elif _o:
          _save(code, _o)
  
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 19 for calling a global function with example usage: update_yaml(_args) without return types