code: def run_in_docker(cmd, workdir="/build"):
      if not (isinstance(cmd, list)):
          cmd = [cmd]
      subprocess.check_call(
          [
              "docker",
              "run",
              "--rm",
              "-m=4g",
              "--mount",
              "type=bind,source="
              + WORKSPACE
              + ",target=/build,consistency=delegated",
              "-w=%s" % workdir,
              TC_BUILD_IMAGE_COS6,
          ]
          + cmd
      )
  
file_path: turicreate/scripts/run_cpp_tests.py
imports: import os
  import sys
  import time
  import pickle
  import fnmatch
  import hashlib
  import argparse
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: run_in_docker(cmd, workdir) without return types