code: def shell(command: str) -> str:
      try:
          output = subprocess.check_output(  # nosec
              command, shell=True, stderr=subprocess.STDOUT
          )
      except Exception:
          output = b""
      return output.decode("utf-8")
  
file_path: PySyft/packages/hagrid/hagrid/util.py
imports: import os
  import subprocess
  import sys
  from typing import Any
  from typing import Tuple
  from typing import Union
  from urllib.parse import urlparse
label_desc: Use image node_id 3 for calling a global function with example usage: shell(command) and returns: output