@classmethod
def examples_via_feature_spec(cls, file_pattern, feature_spec,
    compression_type=None, batch_size=128, shuffle=True, num_epochs=1,
    shuffle_buffer_size=10000, shuffle_seed=None, prefetch_buffer_size=1,
    reader_num_threads=1, parser_num_threads=2, sloppy_ordering=False,
    drop_final_batch=False):
    """Get `Dataset` of parsed `Example` protos.

        :param file_pattern: List of files or patterns of file paths containing
                             `Example` records. See `tf.gfile.Glob` for pattern rules
        :param feature_spec: TensorFlow feature spec
        :param compression_type: TFRecord compression type, see `tf.data.TFRecordDataset` doc
        :param batch_size: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param shuffle: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param num_epochs: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param shuffle_buffer_size: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param shuffle_seed: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param prefetch_buffer_size: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param reader_num_threads: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param parser_num_threads: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param sloppy_ordering: see `tensorflow.contrib.data.make_batched_features_dataset` doc
        :param drop_final_batch: see `tensorflow.contrib.data.make_batched_features_dataset` doc

        :return `Dataset`, which holds results of the parsing of `Example` protos
        """
    return cls._examples(file_pattern, feature_spec=feature_spec,
        compression_type=compression_type, batch_size=batch_size, shuffle=
        shuffle, num_epochs=num_epochs, shuffle_buffer_size=
        shuffle_buffer_size, shuffle_seed=shuffle_seed,
        prefetch_buffer_size=prefetch_buffer_size, reader_num_threads=
        reader_num_threads, parser_num_threads=parser_num_threads,
        sloppy_ordering=sloppy_ordering, drop_final_batch=drop_final_batch)
