def METHOD_NAME(
    self,
    url,
    verb,
    retry_id,
    query_parts=None,
    x_amz_headers=None,
    headers=None,
    payload=None,
    unsigned_payload=False,
    ignore_content_encoding=False,
):
    # when called under _initiate_multipart_upload and _upload_chunk, add content-encoding to header
    if verb is not None and verb in ("POST", "PUT") and headers is not None:
        headers["Content-Encoding"] = "gzip"
    return orig_send_req(
        self,
        url,
        verb,
        retry_id,
        query_parts,
        x_amz_headers,
        headers,
        payload,
        unsigned_payload,
        ignore_content_encoding,
    )