def METHOD_NAME(self):
    pipeline_elements = [PipelineElement("SVC", hyperparameters={'kernel': Categorical(['rbf', 'poly', 'sigmoid']),
                                                                 'C': NumberRange(1, 3, range_type='range')})]
    with self.assertRaises(ValueError):
        self.optimizer.prepare(pipeline_elements, True)