code: def update_text(text, lines_to_add, target, indent=" " * 8):
      begin = f"# BEGIN: {target}\n"
      end = f"# END: {target}\n"
      start = text.index(begin)
      stop = text.index(end)
      to_add = "\n".join([f"{indent}{line}" for line in lines_to_add])
      return f"{text[:start]}{begin}{to_add}\n{indent}{text[stop:]}"
  
label_desc: Use image node_id 4 for calling a global function with example usage: update_text(text, lines_to_add, target, indent) and returns: text, begin, to_add, str, indent, text