class_docstr: Create and start a specified number of EC2 Instances using boto3.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:EC2CreateInstanceOperator`
  
  :param image_id: ID of the AMI used to create the instance.
  :param max_count: Maximum number of instances to launch. Defaults to 1.
  :param min_count: Minimum number of instances to launch. Defaults to 1.
  :param aws_conn_id: AWS connection to use
  :param region_name: AWS region name associated with the client.
  :param poll_interval: Number of seconds to wait before attempting to
      check state of instance. Only used if wait_for_completion is True. Default is 20.
  :param max_attempts: Maximum number of attempts when checking state of instance.
      Only used if wait_for_completion is True. Default is 20.
  :param config: Dictionary for arbitrary parameters to the boto3 run_instances call.
  :param wait_for_completion: If True, the operator will wait for the instance to be
      in the `running` state before returning.
code: def execute(self, context: Context):
      ec2_hook = EC2Hook(
          aws_conn_id=self.aws_conn_id,
          region_name=self.region_name,
          api_type="client_type",
      )
      instances = ec2_hook.conn.run_instances(
          ImageId=self.image_id,
          MinCount=self.min_count,
          MaxCount=self.max_count,
          **self.config,
      )["Instances"]
      instance_ids = []
      for instance in instances:
          instance_ids.append(instance["InstanceId"])
          self.log.info(
              "Created EC2 instance %s", instance["InstanceId"]
          )
  
          if self.wait_for_completion:
              ec2_hook.get_waiter("instance_running").wait(
                  InstanceIds=[instance["InstanceId"]],
                  WaiterConfig={
                      "Delay": self.poll_interval,
                      "MaxAttempts": self.max_attempts,
                  },
              )
  
      return instance_ids
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.amazon.aws.hooks.ec2 import EC2Hook
label_desc: Use image node_id 2 for calling the EC2CreateInstanceOperator obj's underlying member method code with example usage: obj.execute(context) and returns: instance_ids