code: def convert_cbaois_to_kpsois(cbaois):
      """Convert coordinate-based augmentables to KeypointsOnImage instances.
  
      Added in 0.4.0.
  
      Parameters
      ----------
      cbaois : list of imgaug.augmentables.bbs.BoundingBoxesOnImage or list of imgaug.augmentables.bbs.PolygonsOnImage or list of imgaug.augmentables.bbs.LineStringsOnImage or imgaug.augmentables.bbs.BoundingBoxesOnImage or imgaug.augmentables.bbs.PolygonsOnImage or imgaug.augmentables.bbs.LineStringsOnImage
          Coordinate-based augmentables to convert, e.g. bounding boxes.
  
      Returns
      -------
      list of imgaug.augmentables.kps.KeypointsOnImage or imgaug.augmentables.kps.KeypointsOnImage
          ``KeypointsOnImage`` instances containing the coordinates of input
          `cbaois`.
  
      """
      if not isinstance(cbaois, list):
          return cbaois.to_keypoints_on_image()
  
      kpsois = []
      for cbaoi in cbaois:
          kpsois.append(cbaoi.to_keypoints_on_image())
      return kpsois
  
file_path: imgaug/imgaug/augmentables/utils.py
imports: from __future__ import print_function, division, absolute_import
  import copy
  import numpy
  import six.moves
  import imgaug
label_desc: Use image node_id 11 for calling a global function with example usage: convert_cbaois_to_kpsois(cbaois) and returns: kpsois, cbaois