def METHOD_NAME(
    ocm_url: str, httpretty: httpretty_module
) -> Callable[[list[OcmUrl]], int]:
    def f(urls: list[OcmUrl]) -> int:
        i = 0
        for url in urls:
            i += len(url.responses) or 1
            httpretty.register_uri(
                url.method.upper(),
                urljoin(ocm_url, url.uri),
                responses=[
                    httpretty.Response(body=json.dumps(r, default=pydantic_encoder))
                    for r in url.responses
                ],
                content_type="text/json",
            )
        return i
    return f