def is_valid_category(category):
    """ Check if the category is a MISRA defined category """

    allowed_categories = ['Required', 'Advisory', 'Mandatory']

    return category in allowed_categories