code: def from_completed_process(cls, process):
      lines = [
          f"Non-zero exit code: {process.returncode}",
          f"Command: {process.args}",
      ]
      if process.stdout:
          lines += [
              "",
              "STDOUT:",
              process.stdout,
          ]
      if process.stderr:
          lines += [
              "",
              "STDERR:",
              process.stderr,
          ]
      return cls("\n".join(lines))
  
file_path: mlflow/mlflow/utils/process.py
imports: import functools
  import os
  import subprocess
  import sys
label_desc: Use image node_id 1 for calling the ShellCommandException obj's underlying member method code with example usage: obj.from_completed_process(cls, process) and returns: cls