code: def on_start(self):
      retries = Retry(
          total=3,
          backoff_factor=0.5,
          status_forcelist=[429, 500, 502, 503, 504],
      )
      self.client.mount(
          "http://", TimeoutHTTPAdapter(max_retries=retries, timeout=1)
      )
  
file_path: ray/release/k8s_tests/locustfile.py
imports: import locust
  from locust import task, HttpUser
  import logging
  from requests.adapters import HTTPAdapter
  from requests.packages.urllib3.util.retry import Retry
label_desc: Use image node_id 1 for calling the ServeTest obj's underlying member method code with example usage: obj.on_start() without return types