code: def save_parser(args):
      """final options"""
      with open(
          f"{args.results_dir}/opt.txt", "a", encoding="utf-8"
      ) as opt_file:
          opt_log = "------------ Options -------------\n"
          arg = vars(args)
          for k, v in arg.items():
              opt_log += f"{str(k)}: {str(v)}\n"
          opt_log += "---------------------------------------\n"
          print(opt_log)
          opt_file.write(opt_log)
  
file_path: EasyOCR/trainer/craft/utils/util.py
imports: from collections import OrderedDict
  import os
  import cv2
  import numpy
  from data import imgproc
  from utils import craft_utils
label_desc: Use image node_id 4 for calling a global function with example usage: save_parser(args) without return types