code: def detect_torchserve_image_hardware_type(
      image_uri: str,
  ) -> HardwareType:
      """Placeholder docstring"""
      if "neuronx" in image_uri:
          return HardwareType.INFERENTIA_2
      if "neuron" in image_uri:
          return HardwareType.INFERENTIA_1
      if "graviton" in image_uri:
          return HardwareType.GRAVITON
      if "cpu" in image_uri:
          return HardwareType.CPU
  
      return HardwareType.GPU
  
imports: from __future__ import absolute_import
  import logging
  from sagemaker.serve.utils.types import ModelServer, HardwareType
label_desc: Use image node_id 4 for calling a global function with example usage: detect_torchserve_image_hardware_type(image_uri) and returns: HardwareType, HardwareType, HardwareType, HardwareType, HardwareType