def METHOD_NAME(pod_phase):
    if pod_phase not in PodPhases.all():
        raise ValueError(f"Invalid pod phase: {pod_phase}")
    return {
        PodPhases.succeeded: RunStates.completed,
        PodPhases.failed: RunStates.error,
        PodPhases.pending: RunStates.pending,
        PodPhases.running: RunStates.running,
        PodPhases.unknown: RunStates.unknown,
    }[pod_phase]