docstr: Test that we get an exception when there are duplicate clusters
docstr_tok: ["Test","that","we","get","an","exception","when","there","are","duplicate","clusters"]
code: def test_get_cluster_id_by_name_duplicate(self):
      """
      Test that we get an exception when there are duplicate clusters
      """
      hook = EmrHook(
          aws_conn_id="aws_default", emr_conn_id="emr_default"
      )
  
      hook.create_job_flow(
          {
              "Name": "test_cluster",
              "Instances": {"KeepJobFlowAliveWhenNoSteps": True},
          }
      )
  
      hook.create_job_flow(
          {
              "Name": "test_cluster",
              "Instances": {"KeepJobFlowAliveWhenNoSteps": True},
          }
      )
  
      with pytest.raises(AirflowException):
          hook.get_cluster_id_by_name(
              "test_cluster", ["RUNNING", "WAITING", "BOOTSTRAPPING"]
          )
  
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 13 for calling the TestEmrHook obj's underlying member method code with example usage: obj.test_get_cluster_id_by_name_duplicate() without return types