def _tosequence(X):
    if isinstance(X, Mapping):  # single sample
        return [X]
    else:
        return tosequence(X)
Checks if the dict returned by scraping the best page of HN is 30.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/feature_extraction/dict_vectorizer.py/_tosequence--crossover with--dataset/ETHPy150Open karan/HackerNewsAPI/tests/test_stories_dict_structure.py/TestStoriesDict.test_stories_dict_length_best