def register_txn_path(servlet, regex_string, http_server, with_get=False):
    http_server.register_paths(
        "POST",
        client_path_patterns(regex_string + "$"),
        servlet.on_POST
    )
    http_server.register_paths(
        "PUT",
        client_path_patterns(regex_string + "/(?P<txn_id>[^/]*)$"),
        servlet.on_PUT
    )
    if with_get:
        http_server.register_paths(
            "GET",
            client_path_patterns(regex_string + "/(?P<txn_id>[^/]*)$"),
            servlet.on_GET
        )
Check how often subimg appears in the screenshot image.
dataset/ETHPy150Open matrix-org/synapse/synapse/rest/client/v1/room.py/register_txn_path--crossover with--dataset/ETHPy150Open Robpol86/colorclass/tests/screenshot.py/count_subimages