code: def _run_and_get_output_shell_cmd(cmd: str) -> str:
      """Run and return the output of the given shell command"""
      return subprocess.check_output(
          shlex.split(cmd), stderr=subprocess.STDOUT
      ).decode("utf-8")
  
imports: from __future__ import absolute_import
  import logging
  import sys
  import shlex
  import os
  import subprocess
  import time
  import dataclasses
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: _run_and_get_output_shell_cmd(cmd) and returns: subprocess