code: def _get_mpi_implementation_flags(tcp_flag, env=None):
      if is_open_mpi(env):
          return list(_OMPI_FLAGS), list(_NO_BINDING_ARGS), _OMPI_IMPL
      elif is_spectrum_mpi(env):
          return (
              (
                  list(_SMPI_FLAGS_TCP)
                  if tcp_flag
                  else list(_SMPI_FLAGS)
              ),
              list(_SOCKET_BINDING_ARGS),
              _SMPI_IMPL,
          )
      elif is_mpich(env):
          return list(_MPICH_FLAGS), list(_NO_BINDING_ARGS), _MPICH_IMPL
      elif is_intel_mpi(env):
          return list(_IMPI_FLAGS), [], _IMPI_IMPL
      else:
          return None, None, None
  
file_path: horovod/horovod/runner/mpi_run.py
imports: import copy
  import os
  import sys
  from shlex import quote
  from horovod.runner.common.util import env, hosts, safe_shell_exec, tiny_shell_exec
label_desc: Use image node_id 7 for calling a global function with example usage: _get_mpi_implementation_flags(tcp_flag, env) and returns: list,  list,  _OMPI_IMPL, unknown,  list,  _SMPI_IMPL, list,  list,  _MPICH_IMPL, list,  list,  _IMPI_IMPL, None,  None,  None