def METHOD_NAME(workflow_name) -> Workflow:
    service = WorkflowServiceApi(api_client=get_api_client())
    try:
        api_response = service.METHOD_NAME(namespace, name=workflow_name)
    except Exception as e:
        if e.status == 404:
            raise WorkflowNotFound()
        raise WorkflowException("Workflow get error") from e
    workflow = Workflow(api_response)
    if workflow.failed():
        raise WorkflowException("Workflow failed: " + workflow.get_status_message())
    return workflow