def get_process_status(pid):
    """
    Retrieve the status of a process given its PID.

    Args:
        pid (int): The process ID of the process to check.

    Returns:
        str: The status of the process. If the process does not exist, returns "Completed".

    Raises:
        psutil.NoSuchProcess: If no process with the given PID is found.
    """
    try:
        process = psutil.Process(pid)
        proc_status = process.status()
        return proc_status
    except psutil.NoSuchProcess:
        logger.info(f"No process found with PID: {pid}")
        return "Completed"

    Retrieve the status of a process given its PID.

    Args:
        pid (int): The process ID of the process to check.

    Returns:
        str: The status of the process. If the process does not exist, returns "Completed".

    Raises:
        psutil.NoSuchProcess: If no process with the given PID is found.
    
src/autotrain/app/utils.py