def METHOD_NAME(self) -> None:
    sorted_tiles = visualization_registry.Registry.get_visualization_class(
        'SortedTiles')
    option_names = {
        'header': 'Pretty Tiles!',
        'use_percentages': 'invalid_value'
    }
    sorted_tiles_instance = sorted_tiles(
        'AnswerFrequencies', option_names, True)
    with self.assertRaisesRegex(
        Exception, 'Expected bool, received invalid_value'):
        sorted_tiles_instance.validate()