code: def is_gloo_used(use_gloo=None, use_mpi=None, use_jsrun=None):
      # determines whether run_controller will run gloo
      # for the given (use_gloo, _, use_mpi, _, use_jsrun, _, _)
      return use_gloo or (
          not use_mpi and not use_jsrun and not mpi_built()
      )
  
imports: import argparse
  import hashlib
  import logging
  import io
  import os
  import sys
  import textwrap
  import warnings
  import yaml
  import horovod
  from horovod.common.util import extension_available, gloo_built, mpi_built, nccl_built, ddl_built, ccl_built
  from horovod.runner.common.util import config_parser, hosts, safe_shell_exec, secret, timeout
  from horovod.runner.common.util import settings
  from horovod.runner.driver import driver_service
  from horovod.runner.elastic import settings
  from horovod.runner.elastic import discovery
  from horovod.runner.util import cache, threads, network, lsf
  from horovod.runner.gloo_run import gloo_run, gloo_run_elastic
  from horovod.runner.mpi_run import mpi_run
  from horovod.runner.js_run import js_run, is_jsrun_installed
  from horovod.runner.http.http_client import read_data_from_kvstore, put_data_into_kvstore
  from horovod.runner.http.http_server import KVStoreServer
  from horovod.runner.util.remote import get_remote_command
label_desc: Use image node_id 13 for calling a global function with example usage: is_gloo_used(use_gloo, use_mpi, use_jsrun) and returns: unknown