code: def run_trace_based_test(preset_name, num_env_steps, level=None):
      test_name = "__test_trace_{}{}".format(
          preset_name, "_" + level if level else ""
      ).replace(":", "_")
      test_path = os.path.join("./experiments", test_name)
      if path.exists(test_path):
          shutil.rmtree(test_path)
  
      # run the experiment in a separate thread
      screen.log_title(
          "Running test {}{}".format(
              preset_name, " - " + level if level else ""
          )
      )
      log_file_name = "trace_test_log_{preset_name}.txt".format(
          preset_name=test_name[13:]
      )
  
      config_file = "./tmp.cred"
  
      cmd = (
          "python3 rl_coach/coach.py "
          "-p {preset_name} "
          "-e {test_name} "
          "--seed 42 "
          "-c "
          "-dcp {template} "
          "--no_summary "
          "-cp {custom_param} "
          "{level} "
          "&> {log_file_name} "
      ).format(
          preset_name=preset_name,
          test_name=test_name,
          template=config_file,
          log_file_name=log_file_name,
          level="-lvl " + level if level else "",
          custom_param='"improve_steps=EnvironmentSteps({n});'
          "steps_between_evaluation_periods=EnvironmentSteps({n});"
          "evaluation_steps=EnvironmentSteps(1);"
          'heatup_steps=EnvironmentSteps(1024)"'.format(
              n=num_env_steps
          ),
      )
  
      p = subprocess.Popen(
          cmd, shell=True, executable="/bin/bash", preexec_fn=os.setsid
      )
  
      return test_path, log_file_name, p
  
imports: import argparse
  import glob
  import os
  import shutil
  import subprocess
  import multiprocessing
  import sys
  import signal
  import pandas
  import time
  from configparser import ConfigParser
  from importlib import import_module
  from os import path
  from rl_coach.logger import screen
label_desc: Use image node_id 4 for calling a global function with example usage: run_trace_based_test(preset_name, num_env_steps, level) and returns: test_path,  log_file_name,  p