def METHOD_NAME(
    self,
    process_instance_id: int,
    client: FlaskClient,
    with_super_admin_user: UserModel,
) -> Any:
    # Call this to assure all engine-steps are fully processed before we search for human tasks.
    _dequeued_interstitial_stream(process_instance_id)
    """Returns the next available user task for a given process instance, if possible."""
    human_tasks = (
        db.session.query(HumanTaskModel).filter(HumanTaskModel.process_instance_id == process_instance_id).all()
    )
    assert len(human_tasks) > 0, "No human tasks found for process."
    human_task = human_tasks[0]
    response = client.get(
        f"/v1.0/tasks/{process_instance_id}/{human_task.task_id}?with_form_data=true",
        headers=self.logged_in_headers(with_super_admin_user),
    )
    return response