code: def _save_txt(data, file_path):
      """
      将一个list的数组写入txt文件里
      :param data:
      :param file_path:
      :return:
      """
      if not isinstance(data, list):
          data = [data]
      with open(file_path, mode="w", encoding="utf8") as f:
          f.write("\n".join(data))
  
imports: import json
  import pathlib
  import time
  import os
  import glob
  import cv2
  import yaml
  from typing import Mapping
  import matplotlib.pyplot
  import numpy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
label_desc: Use image node_id 9 for calling a global function with example usage: _save_txt(data, file_path) without return types