def METHOD_NAME(
    attribute_name, attribute_type, read=True, write=True, attrs={}
):
    """Create a new attribute class and a resource using it."""
    attrs.update({"attribute_id": attribute_name, "read": read, "write": write})
    attr_cls = type("CA", (attribute_type,), attrs)
    return type("FakeR", (FakeResource,), {"attr": attr_cls()})