code: def test_plugin_should_list_entrypoint_on_page_with_details(
      admin_client,
  ):
      mock_plugin = AirflowPlugin()
      mock_plugin.name = "test_plugin"
      mock_plugin.source = EntryPointSource(
          mock.Mock(),
          mock.Mock(
              version="1.0.0",
              metadata={"Name": "test-entrypoint-testpluginview"},
          ),
      )
      with mock_plugin_manager(plugins=[mock_plugin]):
          resp = admin_client.get("/plugin")
  
      check_content_in_response("test_plugin", resp)
      check_content_in_response("Airflow Plugins", resp)
      check_content_in_response("source", resp)
      check_content_in_response(
          "<em>test-entrypoint-testpluginview==1.0.0:</em> <Mock id=",
          resp,
      )
  
imports: from __future__ import annotations
  import os
  import re
  from unittest import mock
  import pytest
  from airflow.configuration import initialize_config, write_default_airflow_configuration_if_needed, write_webserver_configuration_if_needed
  from airflow.plugins_manager import AirflowPlugin, EntryPointSource
  from airflow.utils.task_group import TaskGroup
  from airflow.www.views import get_key_paths, get_safe_url, get_task_stats_from_query, get_value_from_path
  from tests.test_utils.config import conf_vars
  from tests.test_utils.mock_plugins import mock_plugin_manager
  from tests.test_utils.www import check_content_in_response, check_content_not_in_response
label_desc: Use image node_id 6 for calling a global function with example usage: test_plugin_should_list_entrypoint_on_page_with_details(admin_client) without return types