docstr: Test that we can resolve cluster id by cluster name when there are
  enough clusters to trigger pagination
docstr_tok: ["Test","that","we","can","resolve","cluster","id","by","cluster","name","when","there","are","enough","clusters","to","trigger","pagination"]
code: def test_get_cluster_id_by_name_pagination(self):
      """
      Test that we can resolve cluster id by cluster name when there are
      enough clusters to trigger pagination
      """
      hook = EmrHook(
          aws_conn_id="aws_default", emr_conn_id="emr_default"
      )
  
      # Create enough clusters to trigger pagination
      for index in range(51):
          hook.create_job_flow(
              {
                  "Name": f"test_cluster_{index}",
                  "Instances": {"KeepJobFlowAliveWhenNoSteps": True},
              }
          )
  
      # Fetch a cluster from the second page using the boto API
      client = boto3.client("emr", region_name="us-east-1")
      response_marker = client.list_clusters(
          ClusterStates=["RUNNING", "WAITING", "BOOTSTRAPPING"]
      )["Marker"]
      second_page_cluster = client.list_clusters(
          ClusterStates=["RUNNING", "WAITING", "BOOTSTRAPPING"],
          Marker=response_marker,
      )["Clusters"][0]
  
      # Now that we have a cluster, fetch the id with the name
      second_page_cluster_id = hook.get_cluster_id_by_name(
          second_page_cluster["Name"],
          ["RUNNING", "WAITING", "BOOTSTRAPPING"],
      )
  
      # Assert that the id we got from the hook is the same as the one we got
      # from the boto api
      assert second_page_cluster_id == second_page_cluster["Id"]
  
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 14 for calling the TestEmrHook obj's underlying member method code with example usage: obj.test_get_cluster_id_by_name_pagination() without return types