code: def run_test_cmd(cmd, stdout_file, stderr_file):
      """Runs the command corresponding to a recipe test. The standard output and
      the standard error is saved in the specified paths.
  
      Arguments
      ---------
      cmd: str
          String corresponding to the command to run.
      stdout_file: path
          File where standard output is stored.
      stderr_file: path
          File where standard error is stored.
  
      Returns
      ---------
      rc: bool
          The return code obtained after running the command. If 0, the test is
          run without errors. If >0 the execution failed.
      """
      f_stdout = open(stdout_file, "w")
      f_stderr = open(stderr_file, "w")
      child = sp.Popen(
          [cmd], stdout=f_stdout, stderr=f_stderr, shell=True
      )
      child.communicate()[0]
      rc = child.returncode
      f_stdout.close()
      f_stderr.close()
      return rc
  
file_path: speechbrain/tests/utils/recipe_tests.py
imports: import os
  import re
  import csv
  import sys
  import pydoc
  from time import time
  import subprocess
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.data_utils import download_file
label_desc: Use image node_id 7 for calling a global function with example usage: run_test_cmd(cmd, stdout_file, stderr_file) and returns: rc