code: def setUp(self):
      super(GoogleApiClientTest, self).setUp()
      self.addCleanup(mock.patch.stopall)
  
      # Setting wait time to 1 sec to speed up the tests execution.
      google_api_client._POLL_INTERVAL_IN_SECONDS = 1
      self._project_id = "project-a"
      self._job_id = "job_id"
  
      self.mock_discovery_build = mock.patch.object(
          discovery, "build", autospec=True
      ).start()
      self.mock_apiclient = mock.Mock()
      self.mock_discovery_build.return_value = self.mock_apiclient
      self.mock_request = mock.Mock()
      self.mock_apiclient.projects().jobs().get.return_value = (
          self.mock_request
      )
      self.mock_apiclient.projects().jobs().cancel.return_value = (
          self.mock_request
      )
      self._local_config_path = os.path.join(
          self.get_temp_dir(), "config.json"
      )
      google_api_client._LOCAL_CONFIG_PATH = self._local_config_path
  
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 1 for calling the GoogleApiClientTest obj's underlying member method code with example usage: obj.setUp() without return types