def METHOD_NAME(d, path):
    check_allowed_properties(d, path, ("type", "text", "emphasis", "color"))
    check_required_properties(d, path, ("type", "text"))
    check_text(d['text'], path + ".text")
    if 'emphasis' in d:
        if d['emphasis'] not in ("bold", "italic"):
            raise ValidationError(path + ".emphasis", "not a valid value")
    if 'color' in d:
        check_color(d['color'], path + ".color")