code: def test_to_env_secret(self):
      secret = Secret("env", "name", "secret", "key")
      assert secret.to_env_secret() == k8s.V1EnvVar(
          name="NAME",
          value_from=k8s.V1EnvVarSource(
              secret_key_ref=k8s.V1SecretKeySelector(
                  name="secret", key="key"
              )
          ),
      )
  
file_path: airflow/tests/providers/cncf/kubernetes/models/test_secret.py
imports: from __future__ import annotations
  import sys
  import uuid
  from unittest import mock
  from kubernetes.client import ApiClient, models
  from airflow.providers.cncf.kubernetes.k8s_model import append_to_pod
  from airflow.providers.cncf.kubernetes.pod_generator import PodGenerator
  from airflow.providers.cncf.kubernetes.secret import Secret
label_desc: Use image node_id 1 for calling the TestSecret obj's underlying member method code with example usage: obj.test_to_env_secret() without return types