code: def patch():
      
      if getattr(httplib, PATCH_FLAG, False):
          return
      # we set an attribute to avoid multiple wrapping
      setattr(httplib, PATCH_FLAG, True)
  
      wrapt.wrap_function_wrapper(
          httplib_client_module,
          'HTTPConnection._send_request',
          _send_request
      )
  
      wrapt.wrap_function_wrapper(
          httplib_client_module,
          'HTTPConnection.getresponse',
          _xray_traced_http_getresponse
      )
  
      wrapt.wrap_function_wrapper(
          httplib_client_module,
          'HTTPResponse.read',
          _xray_traced_http_client_read
      )
docs: patch the built-in `urllib/httplib/httplib.client` methods for tracing.