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: Sets the `i`-th specification to respective values in
  :attr:`data_spec`.
docstr_tok: ["Sets","the","`","i","`","-th","specification","to","respective","values","in",":","attr",":","`","data_spec","`","."]
code: def set_ith_data_spec(self, i, data_spec, total_count):
      """Sets the `i`-th specification to respective values in
      :attr:`data_spec`.
      """
      for k, v in six.iteritems(data_spec.__dict__):
          if k in self.__dict__:
              v_ = self.__dict__[k]
              if isinstance(v_, (tuple, list)):
                  v_[i] = v
              else:
                  new_v_ = [v_] * total_count
                  new_v_[i] = v
                  self.__dict__[k] = new_v_
          else:
              v_ = [None] * total_count
              v_[i] = v
              self.__dict__[k] = v_
  
imports: import six
  import tensorflow
  import numpy
  from texar.tf.utils import utils
label_desc: Use image node_id 4 for calling the _DataSpec obj's underlying member method code with example usage: obj.set_ith_data_spec(i, data_spec, total_count) without return types