code: def skip_or_fail_gpu_test(test, message):
      """Fails the test if GPUs are required, otherwise skips."""
      if int(os.environ.get("HOROVOD_TEST_GPU", 0)):
          test.fail(message)
      else:
          test.skipTest(message)
  
imports: import contextlib
  import multiprocessing
  import os
  import shutil
  import sys
  import tempfile
  import time
  import traceback
  import cloudpickle
  import mock
  from horovod.runner.util.threads import in_thread
label_desc: Use image node_id 15 for calling a global function with example usage: skip_or_fail_gpu_test(test, message) without return types