def METHOD_NAME(flux_handle, jobid=lib.FLUX_JOBID_ANY):
    """Wait for a job to complete
    Submit a request to wait for job completion, blocking until a
    response is received, then return the job status.
    Only jobs submitted with waitable=True can be waited for.
    :param flux_handle: handle for Flux broker from flux.Flux()
    :type flux_handle: Flux
    :param jobid: the job ID to wait for (default is any waitable job)
    :returns: job status, a tuple of: Job ID (int), success (bool),
        and an error (string) if success=False
    :rtype: JobWaitResult
    """
    future = wait_async(flux_handle, jobid)
    return future.get_status()