docstr: Test that we can add extra arguments to the launch call.
  
  This is useful for when AWS add new options, such as
  "SecurityConfiguration" so that we don't have to change our code
docstr_tok: ["Test","that","we","can","add","extra","arguments","to","the","launch","call",".","This","is","useful","for","when","AWS","add","new","options",",","such","as","''","SecurityConfiguration","''","so","that","we","do","n't","have","to","change","our","code"]
code: def test_create_job_flow_extra_args(self):
      """
      Test that we can add extra arguments to the launch call.
  
      This is useful for when AWS add new options, such as
      "SecurityConfiguration" so that we don't have to change our code
      """
      client = boto3.client("emr", region_name="us-east-1")
  
      hook = EmrHook(
          aws_conn_id="aws_default", emr_conn_id="emr_default"
      )
      # AmiVersion is really old and almost no one will use it anymore, but
      # it's one of the "optional" request params that moto supports - it's
      # coverage of EMR isn't 100% it turns out.
      with pytest.warns(
          None
      ):  # Expected no warnings if ``emr_conn_id`` exists with correct conn_type
          cluster = hook.create_job_flow(
              {
                  "Name": "test_cluster",
                  "ReleaseLabel": "",
                  "AmiVersion": "3.2",
              }
          )
      cluster = client.describe_cluster(ClusterId=cluster["JobFlowId"])[
          "Cluster"
      ]
  
      # The AmiVersion comes back as {Requested,Running}AmiVersion fields.
      assert cluster["RequestedAmiVersion"] == "3.2"
  
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 7 for calling the TestEmrHook obj's underlying member method code with example usage: obj.test_create_job_flow_extra_args() without return types