code: def test_deploy_model(self, mock_client) -> None:
      self.hook.deploy_model(
          project_id=TEST_PROJECT_ID,
          region=TEST_REGION,
          endpoint=TEST_ENDPOINT_NAME,
          deployed_model=TEST_DEPLOYED_MODEL,
          traffic_split=TEST_TRAFFIC_SPLIT,
      )
      mock_client.assert_called_once_with(TEST_REGION)
      mock_client.return_value.deploy_model.assert_called_once_with(
          request=dict(
              endpoint=mock_client.return_value.endpoint_path.return_value,
              deployed_model=TEST_DEPLOYED_MODEL,
              traffic_split=TEST_TRAFFIC_SPLIT,
          ),
          metadata=(),
          retry=DEFAULT,
          timeout=None,
      )
      mock_client.return_value.endpoint_path.assert_called_once_with(
          TEST_PROJECT_ID,
          TEST_REGION,
          TEST_ENDPOINT_NAME,
      )
  
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 5 for calling the TestEndpointServiceWithDefaultProjectIdHook obj's underlying member method code with example usage: obj.test_deploy_model(mock_client) without return types