code: def testRegionsAndEndpointCannotCoExist(self):
      self._model_blessing.uri = os.path.join(
          self._source_data_dir, "model_validator/blessed"
      )
      self._model_blessing.set_int_custom_property("blessed", 1)
      # Dict format of exec_properties. custom_config needs to be serialized
      # before being passed into Do function.
      self._exec_properties = {
          "custom_config": {
              constants.SERVING_ARGS_KEY: {
                  "model_name": "model_name",
                  "project_id": "project_id",
                  "regions": ["us-central1"],
              },
              constants.ENDPOINT_ARGS_KEY: "https://ml-us-west1.googleapis.com",
          },
          "push_destination": None,
      }
      with self.assertRaisesWithLiteralMatch(
          ValueError,
          "'endpoint' and 'ai_platform_serving_args.regions' cannot be set simultaneously",
      ):
          self._executor.Do(
              self._input_dict,
              self._output_dict,
              self._serialize_custom_config_under_test(),
          )
  
imports: import copy
  import os
  from typing import Any, Dict
  from unittest import mock
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.extensions.google_cloud_ai_platform import constants
  from tfx.extensions.google_cloud_ai_platform.pusher import executor
  from tfx.types import standard_artifacts
  from tfx.types import standard_component_specs
  from tfx.utils import json_utils
  from tfx.utils import name_utils
  from tfx.utils import telemetry_utils
label_desc: Use image node_id 10 for calling the ExecutorTest obj's underlying member method code with example usage: obj.testRegionsAndEndpointCannotCoExist() without return types