code: def patch_vsphere_sdk_provider(request):
      patcher = patch(
          "ray.autoscaler._private.vsphere.vsphere_sdk_provider.\
  VsphereSdkProvider.__wrapped__.get_client",
          lambda *args, **kwargs: MagicMock(),
      )
      mock_function = patcher.start()
  
      def fin():
          patcher.stop()
  
      request.addfinalizer(fin)
      return mock_function
  
file_path: ray/python/ray/tests/vsphere/test_vsphere_sdk_provider.py
imports: import pytest
  from unittest.mock import MagicMock, patch
  from ray.autoscaler._private.vsphere.vsphere_sdk_provider import VsphereSdkProvider, Constants, HardPower
label_desc: Use image node_id 1 for calling a global function with example usage: patch_vsphere_sdk_provider(request) and returns: mock_function