code: def test_update_endpoint(self, mock_client) -> None:
      self.hook.update_endpoint(
          project_id=TEST_PROJECT_ID,
          region=TEST_REGION,
          endpoint_id=TEST_ENDPOINT_NAME,
          endpoint=TEST_ENDPOINT,
          update_mask=TEST_UPDATE_MASK,
      )
      mock_client.assert_called_once_with(TEST_REGION)
      mock_client.return_value.update_endpoint.assert_called_once_with(
          request=dict(
              endpoint=TEST_ENDPOINT,
              update_mask=TEST_UPDATE_MASK,
          ),
          metadata=(),
          retry=DEFAULT,
          timeout=None,
      )
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from google.api_core.gapic_v1.method import DEFAULT
  from airflow.providers.google.cloud.hooks.vertex_ai.endpoint_service import EndpointServiceHook
  from tests.providers.google.cloud.utils.base_gcp_mock import mock_base_gcp_hook_default_project_id, mock_base_gcp_hook_no_default_project_id
label_desc: Use image node_id 8 for calling the TestEndpointServiceWithoutDefaultProjectIdHook obj's underlying member method code with example usage: obj.test_update_endpoint(mock_client) without return types