code: def test_torchserve_graviton_image_with_cpu_instance(self):
      with patch("logging.Logger.warning") as mock_logger:
          validate_image_uri_and_hardware(
              image_uri=GRAVITON_IMAGE_TORCHSERVE,
              instance_type=CPU_INSTANCE,
              model_server=ModelServer.TORCHSERVE,
          )
          mock_logger.assert_called_once()
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/serve/validations/test_check_image_and_hardware_type.py
imports: from __future__ import absolute_import
  import unittest
  from unittest.mock import patch
  from sagemaker.serve.utils.types import ModelServer
  from sagemaker.serve.validations.check_image_and_hardware_type import validate_image_uri_and_hardware
label_desc: Use image node_id 13 for calling the TestValidateImageAndHardware obj's underlying member method code with example usage: obj.test_torchserve_graviton_image_with_cpu_instance() without return types