code: def test_deploy_job_with_default_service_account_has_no_serviceaccount_key(
      self,
  ):
      # If user does not provide a service account (i.e. service_account=None,
      # the service account key should not be included in the request dict as
      # AI Platform will treat None as the name of the service account.
      _ = deploy.deploy_job(
          self.docker_img,
          self.chief_config,
          self.worker_count,
          self.worker_config,
          self.entry_point_args,
          self.stream_logs,
      )
      build_ret_val = self._mock_discovery_build.return_value
      proj_ret_val = build_ret_val.projects.return_value
      jobs_ret_val = proj_ret_val.jobs.return_value
  
      del self.expected_request_dict["trainingInput"]["serviceAccount"]
  
      # Verify job creation args
      _, kwargs = jobs_ret_val.create.call_args
      self.assertDictEqual(
          kwargs,
          {
              "parent": "projects/" + self.mock_project_name,
              "body": self.expected_request_dict,
          },
      )
  
file_path: cloud/src/python/tensorflow_cloud/core/tests/unit/deploy_test.py
imports: import io
  from absl.testing import absltest
  from googleapiclient import discovery
  from googleapiclient import errors
  import mock
  from tensorflow_cloud.core import deploy
  from tensorflow_cloud.core import gcp
  from tensorflow_cloud.core import machine_config
  from tensorflow_cloud.utils import google_api_client
label_desc: Use image node_id 4 for calling the TestDeploy obj's underlying member method code with example usage: obj.test_deploy_job_with_default_service_account_has_no_serviceaccount_key() without return types