class_docstr: trec data class test for cls task.
code: def to_standard_format(input_file, output_file):
      logging.info("Save file to {}".format(output_file))
  
      max_seq = 0
      with open(input_file, encoding="ISO-8859-1") as in_file, open(
          output_file, "w", encoding="utf-8"
      ) as out_file:
          for row in in_file.readlines():
              parts = row.strip().split(" ")
              label = parts[0].split(":")[0]
              text_len = len(parts[1:])
              if text_len > max_seq:
                  max_seq = text_len
              text = " ".join(parts[1:])
              out_file.write(label + "\t" + text + "\n")
      logging.info("max seq len is {}".format(max_seq))
  
file_path: delta/delta/data/datasets/trec.py
imports: import os
  import traceback
  import wget
  from absl import logging
  from delta.data.datasets.base_dataset import BaseDataSet
  from delta.utils.register import registers
label_desc: Use image node_id 3 for calling the TREC obj's underlying member method code with example usage: obj.to_standard_format(input_file, output_file) without return types