code: def run_command_on_all_nodes(cmd: List[str]):
      futures = schedule_remote_fn_on_all_nodes(_run_command, cmd=cmd)
      return ray.get(futures)
  
imports: import os
  import socket
  import subprocess
  from collections import defaultdict
  from contextlib import closing
  from pathlib import Path
  from ray.air.util.node import _force_on_node
  import ray
  from typing import Any, List, Dict, Union, Callable
label_desc: Use image node_id 5 for calling a global function with example usage: run_command_on_all_nodes(cmd) and returns: ray