def get_image_paths(data_type, dataroot):
    'get image path list\n    support lmdb or image files'
    (env, paths) = (None, None)
    if (dataroot is not None):
        if (data_type == 'lmdb'):
            (env, paths) = _get_paths_from_lmdb(dataroot)
        elif (data_type == 'img'):
            paths = sorted(_get_paths_from_images(dataroot))
        else:
            raise NotImplementedError('data_type [{:s}] is not recognized.'.format(data_type))
    return (env, paths)
get image path list
support lmdb or image files
def get_image_paths(data_type, dataroot):
    'get image path list\n    support lmdb or image files'
    (env, paths) = (None, None)
    if (dataroot is not None):
        if (data_type == 'lmdb'):
            (env, paths) = _get_paths_from_lmdb(dataroot)
        elif (data_type == 'img'):
            paths = sorted(_get_paths_from_images(dataroot))
        else:
            raise NotImplementedError('data_type [{:s}] is not recognized.'.format(data_type))
    return (env, paths)