code: def test_warnings_for_deprecated_properties(self):
      batch = ia.Batch()
      # self.assertWarns does not exist in py2.7
      deprecated_attr_names = [
          "images",
          "heatmaps",
          "segmentation_maps",
          "keypoints",
          "bounding_boxes",
      ]
      for attr_name in deprecated_attr_names:
          with self.subTest(
              attr_name=attr_name
          ), warnings.catch_warnings(record=True) as caught_warnings:
              warnings.simplefilter("always")
  
              _ = getattr(batch, attr_name)
              assert len(caught_warnings) == 1
              assert "is deprecated" in str(caught_warnings[-1].message)
  
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 4 for calling the TestBatch obj's underlying member method code with example usage: obj.test_warnings_for_deprecated_properties() without return types