class_docstr: Submit a job and wait for its completion.
  
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
  :param job_name: Required. The name of the job to create.
  :param job: Required. The job descriptor containing the configuration of the job to submit.
  :param polling_period_seconds: Optional: Control the rate of the poll for the result of deferrable run.
      By default, the trigger will poll every 10 seconds.
  :param timeout: The timeout for this request.
  :param gcp_conn_id: The connection ID used to connect to Google Cloud.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
  :param deferrable: Run operator in the deferrable mode
class_docstr_tok: ["Submit","a","job","and","wait","for","its","completion",".",":","param","project_id",":","Required",".","The","ID","of","the","Google","Cloud","project","that","the","service","belongs","to",".",":","param","region",":","Required",".","The","ID","of","the","Google","Cloud","region","that","the","service","belongs","to",".",":","param","job_name",":","Required",".","The","name","of","the","job","to","create",".",":","param","job",":","Required",".","The","job","descriptor","containing","the","configuration","of","the","job","to","submit",".",":","param","polling_period_seconds",":","Optional",":","Control","the","rate","of","the","poll","for","the","result","of","deferrable","run",".","By","default",",","the","trigger","will","poll","every","10","seconds",".",":","param","timeout",":","The","timeout","for","this","request",".",":","param","gcp_conn_id",":","The","connection","ID","used","to","connect","to","Google","Cloud",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")",".",":","param","deferrable",":","Run","operator","in","the","deferrable","mode"]
code: def execute_complete(self, context: Context, event: dict):
      job_status = event["status"]
      if job_status == "success":
          hook: CloudBatchHook = CloudBatchHook(
              self.gcp_conn_id, self.impersonation_chain
          )
          job = hook.get_job(job_name=event["job_name"])
          return Job.to_dict(job)
      else:
          raise AirflowException(
              f"Unexpected error in the operation: {event['message']}"
          )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from google.cloud.batch_v1 import Job, Task
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.providers.google.cloud.hooks.cloud_batch import CloudBatchHook
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
  from airflow.providers.google.cloud.triggers.cloud_batch import CloudBatchJobFinishedTrigger
label_desc: Use image node_id 3 for calling the CloudBatchSubmitJobOperator obj's underlying member method code with example usage: obj.execute_complete(context, event) and returns: Job