def METHOD_NAME(snapshot):
    """Construction of the top level dictionary."""
    patterns = [
        re_path("^authors/?$", views.AuthorViewSet.as_view({"get": "list"})),
    ]
    generator = SchemaGenerator(patterns=patterns)
    request = create_request("/")
    schema = generator.get_schema(request=request)
    assert snapshot == json.dumps(schema, indent=2, sort_keys=True)