code: def quokka_bounding_boxes(size=None, extract=None):
      """Return example bounding boxes on the standard example quokke image.
  
      Currently only a single bounding box is returned that covers the quokka.
  
      Added in 0.5.0. (Moved from ``imgaug.imgaug``.)
  
      Parameters
      ----------
      size : None or float or tuple of int or tuple of float, optional
          Size of the output image on which the BBs are placed. If ``None``, then
          the BBs are not projected to any new size (positions on the original
          image are used). ``float`` s lead to relative size changes, ``int`` s
          to absolute sizes in pixels.
  
      extract : None or 'square' or tuple of number or imgaug.augmentables.bbs.BoundingBox or imgaug.augmentables.bbs.BoundingBoxesOnImage
          Subarea to extract from the image. See :func:`~imgaug.imgaug.quokka`.
  
      Returns
      -------
      imgaug.augmentables.bbs.BoundingBoxesOnImage
          Example BBs on the quokka image.
  
      """
      # TODO get rid of this deferred import
      from imgaug.augmentables.bbs import (
          BoundingBox,
          BoundingBoxesOnImage,
      )
  
      left, top = 0, 0
      if extract is not None:
          bb_extract = _quokka_normalize_extract(extract)
          left = bb_extract.x1
          top = bb_extract.y1
      with open(_QUOKKA_ANNOTATIONS_FP, "r") as f:
          json_dict = json.load(f)
      bbs = []
      for bb_dict in json_dict["bounding_boxes"]:
          bbs.append(
              BoundingBox(
                  x1=bb_dict["x1"] - left,
                  y1=bb_dict["y1"] - top,
                  x2=bb_dict["x2"] - left,
                  y2=bb_dict["y2"] - top,
              )
          )
      if extract is not None:
          shape = (bb_extract.height, bb_extract.width, 3)
      else:
          shape = (643, 960, 3)
      bbsoi = BoundingBoxesOnImage(bbs, shape=shape)
      if size is not None:
          shape_resized = _compute_resized_shape(shape, size)
          bbsoi = bbsoi.on(shape_resized)
      return bbsoi
  
file_path: imgaug/imgaug/data.py
imports: from __future__ import print_function, division, absolute_import
  import os
  import json
  import imageio
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: quokka_bounding_boxes(size, extract) and returns: bbsoi