docstr: Add a user-facing data batch to the builder.
  
  This data batch will be converted to an internal block and then added to the
  underlying builder.
docstr_tok: ["Add","a","user-facing","data","batch","to","the","builder",".","This","data","batch","will","be","converted","to","an","internal","block","and","then","added","to","the","underlying","builder","."]
code: def add_batch(self, batch: DataBatch):
      """Add a user-facing data batch to the builder.
  
      This data batch will be converted to an internal block and then added to the
      underlying builder.
      """
      block = BlockAccessor.batch_to_block(batch)
      return self.add_block(block)
  
file_path: ray/python/ray/data/_internal/delegating_block_builder.py
imports: import collections
  from typing import Any, Mapping
  from ray.data._internal.arrow_block import ArrowBlockBuilder
  from ray.data._internal.block_builder import BlockBuilder
  from ray.data._internal.pandas_block import PandasBlockBuilder
  from ray.data.block import Block, BlockAccessor, DataBatch
label_desc: Use image node_id 3 for calling the DelegatingBlockBuilder obj's underlying member method code with example usage: obj.add_batch(batch) and returns: self