code: def test_decode():
      generate_artifacts()
      text_in = " ".join(
          "".join([random.choice("abcd ") for _ in range(50)]).split()
      )
  
      with open("decode_text_in.txt", "w") as fout:
          fout.write(text_in)
      cmd_args = [
          "yttm",
          "encode",
          f"--model={BASE_MODEL_FILE}",
          "--output_type=id",
      ]
      run(
          cmd_args,
          stdin=open("decode_text_in.txt", "r"),
          stdout=open("decode_id.txt", "w"),
          check=True,
      )
  
      cmd_args = ["yttm", "decode", f"--model={BASE_MODEL_FILE}"]
      run(
          cmd_args,
          stdin=open("decode_id.txt", "r"),
          stdout=open("decode_text_out.txt", "w"),
          check=True,
      )
  
      with open("decode_text_out.txt", "r") as fin:
          text_out = fin.readline()
  
      assert text_in == text_out[:-1]
  
      cmd_args = [
          "yttm",
          "encode",
          f"--model={BASE_MODEL_FILE}",
          "--output_type=id",
          "--bos",
          "--eos",
      ]
      run(
          cmd_args,
          stdin=open("decode_text_in.txt", "r"),
          stdout=open("decode_id.txt", "w"),
          check=True,
      )
  
      cmd_args = [
          "yttm",
          "decode",
          f"--model={BASE_MODEL_FILE}",
          f"--ignore_ids={BOS_ID},{EOS_ID}",
      ]
      run(
          cmd_args,
          stdin=open("decode_id.txt", "r"),
          stdout=open("decode_text_out.txt", "w"),
          check=True,
      )
  
      with open("decode_text_out.txt", "r") as fin:
          text_out = fin.readline()
  
      assert text_in == text_out[:-1]
  
      os.remove("decode_text_in.txt")
      os.remove("decode_text_out.txt")
      os.remove("decode_id.txt")
  
file_path: YouTokenToMe/tests/unit_tests/test_cli.py
imports: import os
  import random
  from subprocess import run
  from utils_for_testing import BASE_MODEL_FILE, RENAME_ID_MODEL_FILE, TEST_FILE, TRAIN_FILE, BOS_ID, EOS_ID, file_starts_with, generate_artifacts
label_desc: Use image node_id 7 for calling a global function with example usage: test_decode() without return types