code: def test_to_batch(self):
      batch_before_aug = ia.Batch()
      batch_before_aug.images_unaug = 0
      batch_before_aug.heatmaps_unaug = 1
      batch_before_aug.segmentation_maps_unaug = 2
      batch_before_aug.keypoints_unaug = 3
      batch_before_aug.bounding_boxes_unaug = 4
      batch_before_aug.polygons_unaug = 5
      batch_before_aug.line_strings_unaug = 6
  
      batch_inaug = _BatchInAugmentation(
          images=10,
          heatmaps=20,
          segmentation_maps=30,
          keypoints=40,
          bounding_boxes=50,
          polygons=60,
          line_strings=70,
      )
  
      batch = batch_inaug.to_batch(batch_before_aug)
  
      assert batch.images_unaug == 0
      assert batch.heatmaps_unaug == 1
      assert batch.segmentation_maps_unaug == 2
      assert batch.keypoints_unaug == 3
      assert batch.bounding_boxes_unaug == 4
      assert batch.polygons_unaug == 5
      assert batch.line_strings_unaug == 6
  
      assert batch.images_aug == 10
      assert batch.heatmaps_aug == 20
      assert batch.segmentation_maps_aug == 30
      assert batch.keypoints_aug == 40
      assert batch.bounding_boxes_aug == 50
      assert batch.polygons_aug == 60
      assert batch.line_strings_aug == 70
  
imports: from __future__ import print_function, division, absolute_import
  import warnings
  import sys
  import numpy
  import imgaug
  import imgaug.augmenters
  from imgaug.testutils import reseed
  from imgaug.augmentables.batches import _BatchInAugmentation
label_desc: Use image node_id 22 for calling the Test_BatchInAugmentation obj's underlying member method code with example usage: obj.test_to_batch() without return types