code: def create_data_data(
      create_data_path, label_path, train_path, val_path, classes_info
  ):
      # create my_data.data file that record classes, train, valid and names info.
      # shutil.copyfile(label_path, "./data/my_data_label.names")
      with open(create_data_path, "w") as w:
          w.write(
              "classes={}".format(len(classes_info)) + "\n"
          )  # 记录类别个数
          w.write(
              "train={}".format(train_path) + "\n"
          )  # 记录训练集对应txt文件路径
          w.write("valid={}".format(val_path) + "\n")  # 记录验证集对应txt文件路径
          w.write("names=data/my_data_label.names" + "\n")
  
imports: import os
label_desc: Use image node_id 2 for calling a global function with example usage: create_data_data(create_data_path, label_path, train_path, val_path, classes_info) without return types