class_docstr: Data Generator Bulider. In essense a wrapped partial function.
  
  Example:
      >>> import matchzoo as mz
      >>> builder = mz.DataGeneratorBuilder(mode='pair', batch_size=32)
      >>> data = mz.datasets.toy.load_data()
      >>> gen = builder.build(data)
      >>> type(gen)
      <class 'matchzoo.data_generator.data_generator.DataGenerator'>
      >>> gen.batch_size
      32
      >>> gen_64 = builder.build(data, batch_size=64)
      >>> gen_64.batch_size
      64
class_docstr_tok: ["Data","Generator","Bulider",".","In","essense","a","wrapped","partial","function",".","Example",":",">",">",">","import","matchzoo","as","mz",">",">",">","builder","=","mz.DataGeneratorBuilder","(","mode='pair","'",",","batch_size=32",")",">",">",">","data","=","mz.datasets.toy.load_data","(",")",">",">",">","gen","=","builder.build","(","data",")",">",">",">","type","(","gen",")","<","class","'matchzoo.data_generator.data_generator.DataGenerator","'",">",">",">",">","gen.batch_size","32",">",">",">","gen_64","=","builder.build","(","data",",","batch_size=64",")",">",">",">","gen_64.batch_size","64"]
docstr: Build a DataGenerator.
  
  :param data_pack: DataPack to build upon.
  :param kwargs: Additional keyword arguments to override the keyword
      arguments passed in `__init__`.
docstr_tok: ["Build","a","DataGenerator",".",":","param","data_pack",":","DataPack","to","build","upon",".",":","param","kwargs",":","Additional","keyword","arguments","to","override","the","keyword","arguments","passed","in","`","__init__","`","."]
code: def build(self, data_pack, **kwargs) -> DataGenerator:
      """
      Build a DataGenerator.
  
      :param data_pack: DataPack to build upon.
      :param kwargs: Additional keyword arguments to override the keyword
          arguments passed in `__init__`.
      """
      return mz.DataGenerator(data_pack, **{**self._kwargs, **kwargs})
  
imports: import matchzoo
  from matchzoo.data_generator.data_generator import DataGenerator
label_desc: Use image node_id 2 for calling the DataGeneratorBuilder obj's underlying member method code with example usage: obj.build(data_pack) and returns: mz