code: def test_interactive_mode():
      generate_artifacts()
      print("interactive helper running id ...")
      cmd = f"python interactor.py | yttm encode --stream --model={BASE_MODEL_FILE} --output_type=id > log.txt"
      assert os.system(cmd) == 0
  
      print("interactive helper running subword ...")
      cmd = f"python interactor.py | yttm encode --stream --model={BASE_MODEL_FILE} --output_type=subword > log.txt"
      assert os.system(cmd) == 0
      os.remove("log.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 2 for calling a global function with example usage: test_interactive_mode() without return types