def METHOD_NAME(cls, attributes: dict, page_type: models.PageType):
    attributes_qs = page_type.page_attributes.all()
    attributes = AttributeAssignmentMixin.clean_input(
        attributes, attributes_qs, is_page_attributes=True
    )
    return attributes