code: def _http_method_logger_wrapper(func: Callable) -> Callable:
      """Returns the function decorated by a wrapper that logs the message using the `log_function` hook."""
  
      @wraps(func)
      def wrapped(self: "HTTPClient", *args: Any, **kwargs: Any) -> Any:
          message = f"HTTPClient: Method: {func.__name__.upper()}, Path: {args[0]}\n"
          message += f"      Base URL: {self.base_url}\n"
          params = kwargs.get("query_params", {})
          if params:
              message += f"      Params: {params}\n"
          resp: requests.Response = func(self, *args, **kwargs)
          message += f"      Response: {resp.status_code} {resp.reason}"
          self.log_function(message)
          return resp
  
      return wrapped
  
imports: import socket
  from functools import wraps
  from typing import Any, Callable, Dict, Optional
  from urllib.parse import urljoin
  import requests
  from lightning_cloud.rest_client import GridRestClient, LightningClient, create_swagger_client
  from requests import Session
  from requests.adapters import HTTPAdapter
  from requests.exceptions import ConnectionError, ConnectTimeout, ReadTimeout
  from urllib3.util.retry import Retry
  from lightning.app.core import constants
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 5 for calling a global function with example usage: _http_method_logger_wrapper(func) and returns: wrapped, resp