def _check_pickling_support():
    # Reads the first two components of the version number as a floating point
    # number.
    version = float('.'.join(numpy.version.version.split('.')[:2]))

    if version < 1.7:
        msg = ("Pickling NORB is disabled for numpy versions less "
               "than 1.7, due to a bug in 1.6.x that causes memmaps "
               "to interact poorly with pickling.")
        raise NotImplementedError(msg)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/new_norb.py/_check_pickling_support/original