def test_feature_computation(
    create_lexical_syntactic_featurizer: Callable[
        [Dict[Text, Any]], LexicalSyntacticFeaturizer
    ],
    sentence: Text,
    part_of_speech: Optional[List[Text]],
    feature_config: List[List[Text]],
    expected_features: List[Union[int, List[int]]],