def _is_arraylike(x):
    return (hasattr(x, '__len__') or
            hasattr(x, 'shape') or
            hasattr(x, '__array__'))
Create an Configuration Model graph. Note the the degree sequence(s) given
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/utils/validation.py/_is_arraylike--crossover with--dataset/ETHPy150Open charanpald/APGL/apgl/generator/ConfigModelGenerator.py/ConfigModelGenerator.generate