code: def main(args):
      input_scp = load_num_sequence_text(
          args.input_label, loader_type="text_int"
      )
      with open(args.output_label, "w", encoding="utf-8") as fout:
          for key in input_scp.keys():
              value = torch.tensor(input_scp[key])
              value_seq = list(
                  map(
                      str,
                      torch.unique_consecutive(value)
                      .detach()
                      .cpu()
                      .numpy(),
                  )
              )
              fout.write("{} {}\n".format(key, " ".join(value_seq)))
  
imports: import argparse
  import logging
  import numpy
  import torch
  from espnet2.fileio.read_text import load_num_sequence_text
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) without return types