code: def get_process_status(process: subprocess.Popen) -> str:
      poll_status = process.poll()
      if poll_status is None:
          return ProcessStatus.RUNNING.value
      elif poll_status != 0:
          return ProcessStatus.FAILED.value
      else:
          return ProcessStatus.DONE.value
  
imports: from enum import Enum
  import hashlib
  import importlib
  import importlib.machinery
  import importlib.util
  import json
  import os
  from pathlib import Path
  import random
  import shutil
  import socket
  import subprocess
  from typing import List
  from typing import Optional
  from typing import Tuple
  from typing import Union
  import git
  import requests
  import rich
  from rich import console
  from rich import progress
  from rich.table import Table
  from .cache import DEFAULT_BRANCH
  from .mode import EDITABLE_MODE
  from .mode import hagrid_root
label_desc: Use image node_id 23 for calling a global function with example usage: get_process_status(process) and returns: ProcessStatus, ProcessStatus, ProcessStatus