class_docstr: Abstract generator class.
      
docstr: Keras sequence method for generating batches.
code: def __getitem__(self, index):
      """
      Keras sequence method for generating batches.
      """
      group = self.groups[index]
      inputs, targets = self.compute_input_output(group)
  
      return inputs, targets
  
imports: import numpy
  import random
  import warnings
  from tensorflow import keras
  from ..utils.anchors import anchor_targets_bbox, anchors_for_shape, guess_shapes
  from ..utils.config import parse_anchor_parameters, parse_pyramid_levels
  from ..utils.image import TransformParameters, adjust_transform_for_image, apply_transform, preprocess_image, resize_image
  from ..utils.transform import transform_aabb
label_desc: Use image node_id 29 for calling the Generator obj's underlying member method code with example usage: obj.__getitem__(index) and returns: inputs,  targets