code: def run(force=False, fail_fast=False):
      if not force and not pip_util.running_under_virtualenv():
          sys.stderr.write(
              "This command must be run in a virtual environment\n"
          )
          sys.exit(1)
      if WORKSPACE is None:
          raise ValueError(
              "'WORKSPACE' environment variable not set - cannot run uat"
          )
      tests = _tests_for_index()
      _init_workspace()
      _mark_passed_tests()
      _run_tests(tests, fail_fast)
  
imports: import fnmatch
  import os
  import re
  import sys
  import tempfile
  import guild
  from guild import _test
  from guild import config
  from guild import pip_util
  from guild import util
label_desc: Use image node_id 1 for calling a global function with example usage: run(force, fail_fast) without return types