class_docstr: Util to build a SampleBatch incrementally.
  
  For efficiency, SampleBatches hold values in column form (as arrays).
  However, it is useful to add data one row (dict) at a time.
class_docstr_tok: ["Util","to","build","a","SampleBatch","incrementally",".","For","efficiency",",","SampleBatches","hold","values","in","column","form","(","as","arrays",")",".","However",",","it","is","useful","to","add","data","one","row","(","dict",")","at","a","time","."]
docstr: Add the given batch of values to this batch.
docstr_tok: ["Add","the","given","batch","of","values","to","this","batch","."]
code: def add_batch(self, batch: SampleBatch) -> None:
      """Add the given batch of values to this batch."""
  
      for k, column in batch.items():
          self.buffers[k].extend(column)
      self.count += batch.count
  
imports: import collections
  import logging
  import numpy
  from typing import List, Any, Dict, Optional, TYPE_CHECKING
  from ray.rllib.env.base_env import _DUMMY_AGENT_ID
  from ray.rllib.evaluation.episode import Episode
  from ray.rllib.policy.policy import Policy
  from ray.rllib.policy.sample_batch import SampleBatch, MultiAgentBatch
  from ray.rllib.utils.annotations import DeveloperAPI
  from ray.rllib.utils.deprecation import Deprecated
  from ray.rllib.utils.debug import summarize
  from ray.rllib.utils.deprecation import deprecation_warning
  from ray.rllib.utils.typing import PolicyID, AgentID
  from ray.util.debug import log_once
label_desc: Use image node_id 3 for calling the SampleBatchBuilder obj's underlying member method code with example usage: obj.add_batch(batch) without return types