code: def get_output_error_code(
      cmd: str | Sequence[str],
  ) -> tuple[str, str, Any]:
      """Get stdout, stderr, and exit code from running a command"""
      import os
  
      env = os.environ.copy()
      env["Y_PYTHON_ENTRY_POINT"] = ":main"
      p = Popen(cmd, stdout=PIPE, stderr=PIPE, env=env)  # noqa
      out, err = p.communicate()
      out_str = out.decode("utf8", "replace")
      err_str = err.decode("utf8", "replace")
      return out_str, err_str, p.returncode
  
imports: from __future__ import annotations
  import sys
  from subprocess import PIPE, Popen
  from typing import Any, Sequence
label_desc: Use image node_id 1 for calling a global function with example usage: get_output_error_code(cmd) and returns: out_str,  err_str,  p