def METHOD_NAME(device, batch_size, input_shape,
                                   axis, dct_type, lifter, n_mfcc, norm, msg):
    with assert_raises(RuntimeError, regex=msg):
        eii1 = RandomDataIterator(batch_size, shape=input_shape, dtype=np.float32)
        pipe = MFCCPipeline(device, batch_size, iter(eii1),
                            axis=axis, dct_type=dct_type, lifter=lifter, n_mfcc=n_mfcc, norm=norm)
        pipe.build()
        pipe.run()