code: def test_rendered_task_detail_env_secret(
      patch_app, admin_client, request, env, expected
  ):
      if request.node.callspec.id.endswith("-tpld-var"):
          Variable.set("plain_var", "banana")
          Variable.set("secret_var", "monkey")
  
      dag: DAG = patch_app.dag_bag.get_dag("testdag")
      task_secret: BashOperator = dag.get_task(task_id="task1")
      task_secret.env = env
      date = quote_plus(str(DEFAULT_DATE))
      url = f"task?task_id=task1&dag_id=testdag&execution_date={date}"
  
      with create_session() as session:
          dag.create_dagrun(
              state=DagRunState.RUNNING,
              execution_date=DEFAULT_DATE,
              data_interval=(DEFAULT_DATE, DEFAULT_DATE),
              run_type=DagRunType.SCHEDULED,
              session=session,
          )
  
      resp = admin_client.get(url, follow_redirects=True)
      check_content_in_response(str(escape(expected)), resp)
  
      if request.node.callspec.id.endswith("-tpld-var"):
          Variable.delete("plain_var")
          Variable.delete("secret_var")
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  from urllib.parse import quote_plus
  import pytest
  from markupsafe import escape
  from airflow.models.baseoperator import BaseOperator
  from airflow.models.dag import DAG
  from airflow.models.renderedtifields import RenderedTaskInstanceFields
  from airflow.models.variable import Variable
  from airflow.operators.bash import BashOperator
  from airflow.operators.python import PythonOperator
  from airflow.serialization.serialized_objects import SerializedDAG
  from airflow.utils import timezone
  from airflow.utils.session import create_session
  from airflow.utils.state import DagRunState, TaskInstanceState
  from airflow.utils.types import DagRunType
  from tests.conftest import initial_db_init
  from tests.test_utils.db import clear_db_dags, clear_db_runs, clear_rendered_ti_fields
  from tests.test_utils.www import check_content_in_response, check_content_not_in_response
label_desc: Use image node_id 15 for calling a global function with example usage: test_rendered_task_detail_env_secret(patch_app, admin_client, request, env, expected) without return types