docstr: Test exists ``emr_conn_id`` have unexpected ``conn_type``.
docstr_tok: ["Test","exists","``","emr_conn_id","``","have","unexpected","``","conn_type","``","."]
code: def test_emr_conn_id_wrong_conn_type(self, mock_boto3_client):
      """Test exists ``emr_conn_id`` have unexpected ``conn_type``."""
      mock_run_job_flow = mock.MagicMock()
      mock_boto3_client.return_value.run_job_flow = mock_run_job_flow
      job_flow_overrides = {"foo": "bar"}
  
      with mock.patch.dict(
          "os.environ", AIRFLOW_CONN_WRONG_TYPE_CONN="aws://"
      ):
          hook = EmrHook(
              aws_conn_id="aws_default", emr_conn_id="wrong_type_conn"
          )
          warning_message = (
              r"Amazon Elastic MapReduce Connection expected connection type 'emr'"
              r".* This connection might not work correctly."
          )
          with pytest.warns(UserWarning, match=warning_message):
              hook.create_job_flow(job_flow_overrides)
          mock_run_job_flow.assert_called_once_with(
              **job_flow_overrides
          )
  
imports: from __future__ import annotations
  import re
  from unittest import mock
  import boto3
  import pytest
  from botocore.exceptions import WaiterError
  from moto import mock_emr
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.hooks.emr import EmrHook
label_desc: Use image node_id 10 for calling the TestEmrHook obj's underlying member method code with example usage: obj.test_emr_conn_id_wrong_conn_type(mock_boto3_client) without return types