code: def _capture_telemetry(func_name: str):
      """Placeholder docstring"""
  
      def decorator(func):
          def wrapper(self, *args, **kwargs):
              # Call the original function
              logger.info(TELEMETRY_OPT_OUT_MESSAGING)
              response = None
              caught_ex = None
  
              image_uri_tail = self.image_uri.split("/")[1]
              extra = (
                  f"{func_name}"
                  f"&x-modelServer={MODEL_SERVER_TO_CODE[str(self.model_server)]}"
                  f"&x-imageTag={image_uri_tail}"
              )
  
              if (
                  self.model_server == ModelServer.DJL_SERVING
                  or self.model_server == ModelServer.TGI
              ):
                  extra += f"&x-modelName={self.model}"
  
              try:
                  response = func(self, *args, **kwargs)
                  if not self.serve_settings.telemetry_opt_out:
                      _send_telemetry(
                          "1",
                          MODE_TO_CODE[str(self.mode)],
                          self.sagemaker_session,
                          None,
                          None,
                          extra,
                      )
              except ModelBuilderException as e:
                  if not self.serve_settings.telemetry_opt_out:
                      _send_telemetry(
                          "0",
                          MODE_TO_CODE[str(self.mode)],
                          self.sagemaker_session,
                          str(e),
                          e.__class__.__name__,
                          extra,
                      )
                  caught_ex = e
              except Exception as e:  # pylint: disable=W0703
                  caught_ex = e
              finally:
                  if caught_ex:
                      raise caught_ex
                  return response  # pylint: disable=W0150
  
          return wrapper
  
      return decorator
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/utils/telemetry_logger.py
imports: from __future__ import absolute_import
  import logging
  import requests
  from sagemaker import Session
  from sagemaker.serve.mode.function_pointers import Mode
  from sagemaker.serve.utils.exceptions import ModelBuilderException
  from sagemaker.serve.utils.types import ModelServer
label_desc: Use image node_id 1 for calling a global function with example usage: _capture_telemetry(func_name) and returns: decorator, wrapper, response