code: def _run_command(args: Any) -> Tuple[str, str]:
      with Popen(args=args, stdout=PIPE, stderr=PIPE) as proc:
          log.info(f"Running command: {' '.join(args)}")
          out, err = proc.communicate()
          out_str = out.decode().strip() if out is not None else ""
          err_str = err.decode().strip() if err is not None else ""
          log.info(f"Output: {out_str} \n Error: {err_str}")
          return out_str, err_str
  
file_path: hydra/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_launcher_util.py
imports: import logging
  import os
  from contextlib import contextmanager
  from subprocess import PIPE, Popen
  from typing import Any, Dict, Generator, List, Tuple
  import ray
  from hydra.core.hydra_config import HydraConfig
  from hydra.core.singleton import Singleton
  from hydra.core.utils import JobReturn, run_job, setup_globals
  from hydra.types import HydraContext, TaskFunction
  from omegaconf import DictConfig, OmegaConf
label_desc: Use image node_id 4 for calling a global function with example usage: _run_command(args) and returns: out_str,  err_str