code: def test_update_linked_service_non_existent(
      hook: AzureDataFactoryHook,
  ):
      with patch.object(
          hook, "_linked_service_exists"
      ) as mock_linked_service_exists:
          mock_linked_service_exists.return_value = False
  
      with pytest.raises(
          AirflowException, match=r"Linked service .+ does not exist"
      ):
          hook.update_linked_service(
              NAME, MODEL, RESOURCE_GROUP, FACTORY
          )
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  from unittest.mock import MagicMock, PropertyMock, patch
  import pytest
  from azure.mgmt.datafactory.aio import DataFactoryManagementClient
  from azure.mgmt.datafactory.models import FactoryListResponse
  from airflow.exceptions import AirflowException
  from airflow.models.connection import Connection
  from airflow.providers.microsoft.azure.hooks.data_factory import AzureDataFactoryAsyncHook, AzureDataFactoryHook, AzureDataFactoryPipelineRunException, AzureDataFactoryPipelineRunStatus, get_field, provide_targeted_factory
label_desc: Use image node_id 15 for calling a global function with example usage: test_update_linked_service_non_existent(hook) without return types