code: def run_command(cmd: List[str]) -> str:
      """Execute a command in the shell.
  
      Args:
          cmd: :obj:`List[str]`. The command with its arguments to execute.
  
      Returns:
          The standard output of the command.
  
      Raises:
          :obj:`OSError`: if the standard error stream is not empty.
      """
      ps = subprocess.run(args=cmd, capture_output=True)
      if ps.stderr:
          raise OSError(
              f"Failed running {' '.join(cmd)} with error message: "
              f"{ps.stderr.decode('utf-8')}."
          )
      return ps.stdout.decode("utf-8")
  
imports: import enum
  import importlib
  import os
  import pickle
  import re
  import subprocess
  import sys
  import tempfile
  import time
  from dataclasses import dataclass, field
  from functools import partial
  from typing import Any, Callable, Dict, List, Tuple, Union
label_desc: Use image node_id 4 for calling a global function with example usage: run_command(cmd) and returns: ps