code: def test_wait_for_aip_training_job_completion_non_blocking_cancelled(
      self,
  ):
      self.mock_request.execute.return_value = {
          "state": "CANCELLED",
      }
      status = google_api_client.wait_for_aip_training_job_completion(
          self._job_id, self._project_id
      )
      self.assertTrue(status)
      self.mock_request.execute.assert_called_once()
      job_name = "projects/{}/jobs/{}".format(
          self._project_id, self._job_id
      )
      self.mock_apiclient.projects().jobs().get.assert_called_with(
          name=job_name
      )
  
imports: import json
  import os
  from googleapiclient import discovery
  from googleapiclient import errors
  from googleapiclient import http
  import httplib2
  import mock
  import tensorflow
  from tensorflow_cloud import version
  from tensorflow_cloud.utils import google_api_client
label_desc: Use image node_id 3 for calling the GoogleApiClientTest obj's underlying member method code with example usage: obj.test_wait_for_aip_training_job_completion_non_blocking_cancelled() without return types