dataset = tf.data.Dataset.from_tensor_slices((imagepath,labelpath))

    dataset = dataset.map(lambda image_path, labelpath: tuple(tf.py_func(
        self.input_parser, [imagepath, labelpath], [tf.float32,tf.int32])), num_parallel_calls=2)