code: def smoketest(argstr, **kwargs):
      import tempfile
      import subprocess
      import os
  
      argstr = "python -m baselines.run " + argstr
      for key, value in kwargs:
          argstr += " --{}={}".format(key, value)
      tempdir = tempfile.mkdtemp()
      env = os.environ.copy()
      env["OPENAI_LOGDIR"] = tempdir
      subprocess.run(argstr.split(" "), env=env)
      return tempdir
  
imports: import tensorflow
  import numpy
  from baselines.common.vec_env.dummy_vec_env import DummyVecEnv
label_desc: Use image node_id 4 for calling a global function with example usage: smoketest(argstr) and returns: tempdir