code: def __init__(self, func, *args, **kwargs):
      super().__init__(*args, **kwargs)
      callback = mz.data_generator.callbacks.LambdaCallback(
          on_batch_data_pack=func
      )
      self.callbacks.append(callback)
      print_deprecation_warning(self)
  
imports: import numpy
  import matchzoo
label_desc: Use image node_id 1 to create a new DynamicDataGenerator object from inherited base classes: mz with example: obj = DynamicDataGenerator(func)