code: def test_should_respond_200_text_plain_with_non_sensitive_only(
      self, mock_as_dict
  ):
      response = self.client.get(
          "/api/v1/config",
          headers={"Accept": "text/plain"},
          environ_overrides={"REMOTE_USER": "test"},
      )
      mock_as_dict.assert_called_with(
          display_source=False, display_sensitive=False
      )
      assert response.status_code == 200
      expected = textwrap.dedent(
          """\
          [core]
          parallelism = 1024
  
          [smtp]
          smtp_host = localhost
          smtp_mail_from = airflow@example.com
          """
      )
      assert expected == response.data.decode()
  
imports: from __future__ import annotations
  import textwrap
  from unittest.mock import patch
  import pytest
  from airflow.security import permissions
  from tests.test_utils.api_connexion_utils import assert_401, create_user, delete_user
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 3 for calling the TestGetConfig obj's underlying member method code with example usage: obj.test_should_respond_200_text_plain_with_non_sensitive_only(mock_as_dict) without return types