code: def mock_deploy(self, mock_exception_func=None):
      if mock_exception_func:
          mock_exception_func()
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/serve/utils/test_telemetry_logger.py
imports: from __future__ import absolute_import
  import unittest
  from unittest.mock import Mock, patch
  from sagemaker.serve import Mode, ModelServer
  from sagemaker.serve.utils.telemetry_logger import _send_telemetry, _capture_telemetry, _construct_url
  from sagemaker.serve.utils.exceptions import ModelBuilderException, LocalModelOutOfMemoryException
label_desc: Use image node_id 2 for calling the ModelBuilderMock obj's underlying member method code with example usage: obj.mock_deploy(mock_exception_func) without return types