code: def from_config(self, k, v):
          
          if k == "setup":
              return from_commandline(v, classname=to_commandline(datagen.DataGenerator()))
          return super(DataGenerator, self).from_config(k, v)
docs: Hook method that allows converting values from the dictionary.
  
          :param k: the key in the dictionary
          :type k: str
          :param v: the value
          :type v: object
          :return: the potentially parsed value
          :rtype: object