code: def test_get_conn_params_should_support_private_auth_with_unencrypted_key(
      self, non_encrypted_temporary_private_key
  ):
      connection_kwargs = {
          **BASE_CONNECTION_KWARGS,
          "password": None,
          "extra": {
              "database": "db",
              "account": "airflow",
              "warehouse": "af_wh",
              "region": "af_region",
              "role": "af_role",
              "private_key_file": str(
                  non_encrypted_temporary_private_key
              ),
          },
      }
      with mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              **connection_kwargs
          ).get_uri(),
      ):
          assert (
              "private_key"
              in SnowflakeHook(
                  snowflake_conn_id="test_conn"
              )._get_conn_params()
          )
      connection_kwargs["password"] = ""
      with mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              **connection_kwargs
          ).get_uri(),
      ):
          assert (
              "private_key"
              in SnowflakeHook(
                  snowflake_conn_id="test_conn"
              )._get_conn_params()
          )
      connection_kwargs["password"] = _PASSWORD
      with mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              **connection_kwargs
          ).get_uri(),
      ), pytest.raises(
          TypeError,
          match="Password was given but private key is not encrypted.",
      ):
          SnowflakeHook(
              snowflake_conn_id="test_conn"
          )._get_conn_params()
  
imports: from __future__ import annotations
  import json
  from copy import deepcopy
  from typing import TYPE_CHECKING, Any
  from unittest import mock
  import pytest
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives import serialization
  from cryptography.hazmat.primitives.asymmetric import rsa
  from airflow.models import Connection
  from airflow.providers.snowflake.hooks.snowflake import SnowflakeHook
label_desc: Use image node_id 6 for calling the TestPytestSnowflakeHook obj's underlying member method code with example usage: obj.test_get_conn_params_should_support_private_auth_with_unencrypted_key(non_encrypted_temporary_private_key) without return types