def METHOD_NAME(self, top_k=None, timeout=None):
    preprocess_params = {}
    if timeout is not None:
        preprocess_params["timeout"] = timeout
    postprocess_params = {}
    if top_k is not None:
        postprocess_params["top_k"] = top_k
    return preprocess_params, {}, postprocess_params