def METHOD_NAME(request_embed, embed, *, regex: bool = True):
    """Recursively checks to ensure that two embeds have the same structure."""
    assert type(request_embed) == type(embed)
    if isinstance(embed, dict):
        for k, v in embed.items():
            if k == "inline":
                continue
            elif isinstance(v, (dict, list)):
                METHOD_NAME(request_embed[k], embed[k])
            elif isinstance(v, str) and regex:
                assert re.match(embed[k], request_embed[k])
            else:
                assert request_embed[k] == embed[k]
    elif isinstance(embed, list):  # list of fields, usually
        assert len(embed) <= len(request_embed)
        for e, r in zip(embed, request_embed):
            METHOD_NAME(r, e)
    else:
        assert request_embed == embed