code: def test_get_dagrun_can_view_dags_without_edit_perms(
      session, running_dag_run, client_dr_without_dag_edit
  ):
      """Test that a user without dag_edit but with dag_read permission can view the records"""
      assert (
          session.query(DagRun)
          .filter(DagRun.dag_id == running_dag_run.dag_id)
          .count()
          == 1
      )
      resp = client_dr_without_dag_edit.get(
          "/dagrun/list/", follow_redirects=True
      )
      check_content_in_response(running_dag_run.dag_id, resp)
  
imports: from __future__ import annotations
  import pytest
  from airflow.models import DagBag, DagRun, TaskInstance
  from airflow.security import permissions
  from airflow.utils import timezone
  from airflow.utils.session import create_session
  from airflow.www.views import DagRunModelView
  from tests.test_utils.api_connexion_utils import create_user, delete_roles, delete_user
  from tests.test_utils.www import check_content_in_response, check_content_not_in_response, client_with_login
  from tests.www.views.test_views_tasks import _get_appbuilder_pk_string
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_dagrun_can_view_dags_without_edit_perms(session, running_dag_run, client_dr_without_dag_edit) without return types