class_docstr: Dataset specification. Used to pass necessary info to
  user-defined tranformation functions.
  
  Args:
      dataset: Instance of :tf_main:`tf.data.Dataset <data/Dataset>`.
      dataset_size (int): Number of data samples.
      decoder: A (list of) data decoder.
      vocab: A (list of) :class:`~texar.tf.data.Vocab` instance.
      embeddidng: A (list of) :class:`~texar.tf.data.Embedding` instance.
      **kwargs: Any remaining dataset-specific fields.
class_docstr_tok: ["Dataset","specification",".","Used","to","pass","necessary","info","to","user-defined","tranformation","functions",".","Args",":","dataset",":","Instance","of",":","tf_main",":","`","tf.data.Dataset","<","data\/Dataset",">","`",".","dataset_size","(","int",")",":","Number","of","data","samples",".","decoder",":","A","(","list","of",")","data","decoder",".","vocab",":","A","(","list","of",")",":","class",":","`","~texar.tf.data.Vocab","`","instance",".","embeddidng",":","A","(","list","of",")",":","class",":","`","~texar.tf.data.Embedding","`","instance",".","*","*","kwargs",":","Any","remaining","dataset-specific","fields","."]
docstr: Returns an instance of :class:`_DataSpec` that contains the
  `i`-th specifications.
docstr_tok: ["Returns","an","instance","of",":","class",":","`","_DataSpec","`","that","contains","the","`","i","`","-th","specifications","."]
code: def get_ith_data_spec(self, i):
      """Returns an instance of :class:`_DataSpec` that contains the
      `i`-th specifications.
      """
      kwargs = {}
      for k, v in six.iteritems(self.__dict__):
          kwargs[k] = v[i] if isinstance(v, (tuple, list)) else v
      return _DataSpec(**kwargs)
  
imports: import six
  import tensorflow
  import numpy
  from texar.tf.utils import utils
label_desc: Use image node_id 3 for calling the _DataSpec obj's underlying member method code with example usage: obj.get_ith_data_spec(i) and returns: _DataSpec