code: def wrap_request_time(
      compute: Callable[[], Any]
  ) -> Callable[[], Any]:
      """Return a version of `compute` that puts `request_time` into its output."""
  
      def wrapped_compute():
          start_time = time.time()
          response = compute()
          end_time = time.time()
          response["request_time"] = end_time - start_time
          response["request_datetime"] = int(start_time)
          return response
  
      return wrapped_compute
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/client.py
imports: import time
  import json
  from abc import ABC, abstractmethod
  from typing import Callable, Any, Dict, List
  from helm.common.hierarchical_logger import hlog
  from helm.common.request import Request, RequestResult, Sequence, Token
  from helm.common.tokenization_request import TokenizationRequest, TokenizationRequestResult, DecodeRequest, DecodeRequestResult
label_desc: Use image node_id 1 for calling a global function with example usage: wrap_request_time(compute) and returns: wrapped_compute, response