code: def remove_dataset_from_aslib_arff(
      input_file,
      output_file,
      id,
  ):
      with open(input_file) as fh:
          arff_object = arff.load(fh)
      for i in range(len(arff_object["data"]) - 1, -1, -1):
          if str(arff_object["data"][i][0]) == str(id):
              del arff_object["data"][i]
  
      with open(output_file, "w") as fh:
          arff.dump(arff_object, fh)
      del arff_object
  
imports: import os
  import arff
  from shutil import copyfile
label_desc: Use image node_id 1 for calling a global function with example usage: remove_dataset_from_aslib_arff(input_file, output_file, id) without return types