def METHOD_NAME(raw_X):
    """FeatureHasher raises error when a sample is a single string.
    Non-regression test for gh-13199.
    """
    msg = "Samples can not be a single string"
    feature_hasher = FeatureHasher(n_features=10, input_type="string")
    with pytest.raises(ValueError, match=msg):
        feature_hasher.transform(raw_X)