code: def test_get_private_key_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 unittest.mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              **connection_kwargs
          ).get_uri(),
      ):
          hook = SnowflakeSqlApiHook(snowflake_conn_id="test_conn")
          hook.get_private_key()
          assert hook.private_key is not None
      connection_kwargs["password"] = ""
      with unittest.mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              **connection_kwargs
          ).get_uri(),
      ):
          hook = SnowflakeSqlApiHook(snowflake_conn_id="test_conn")
          hook.get_private_key()
          assert hook.private_key is not None
      connection_kwargs["password"] = _PASSWORD
      with unittest.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.",
      ):
          SnowflakeSqlApiHook(
              snowflake_conn_id="test_conn"
          ).get_private_key()
  
imports: from __future__ import annotations
  import unittest
  import uuid
  from typing import TYPE_CHECKING, Any
  from unittest import mock
  from unittest.mock import AsyncMock
  import pytest
  import requests
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives import serialization
  from cryptography.hazmat.primitives.asymmetric import rsa
  from responses import RequestsMock
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.snowflake.hooks.snowflake_sql_api import SnowflakeSqlApiHook
label_desc: Use image node_id 12 for calling the TestSnowflakeSqlApiHook obj's underlying member method code with example usage: obj.test_get_private_key_should_support_private_auth_with_unencrypted_key(non_encrypted_temporary_private_key) without return types