def METHOD_NAME(
    ocm_url: str,
    httpretty: httpretty_module,
) -> Callable[[str, str], Optional[HTTPrettyRequest]]:
    def find_request(method: str, path: str) -> Optional[HTTPrettyRequest]:
        for req in httpretty.latest_requests():
            if _request_matches(req, method, ocm_url, path):
                return req
        return None
    return find_request