code: def quokka(size=None, extract=None):
      """Return an image of a quokka as a numpy array.
  
      Added in 0.5.0. (Moved from ``imgaug.imgaug``.)
  
      Parameters
      ----------
      size : None or float or tuple of int, optional
          Size of the output image. Input into
          :func:`~imgaug.imgaug.imresize_single_image`. Usually expected to be a
          ``tuple`` ``(H, W)``, where ``H`` is the desired height and ``W`` is
          the width. If ``None``, then the image will not be resized.
  
      extract : None or 'square' or tuple of number or imgaug.augmentables.bbs.BoundingBox or imgaug.augmentables.bbs.BoundingBoxesOnImage
          Subarea of the quokka image to extract:
  
              * If ``None``, then the whole image will be used.
              * If ``str`` ``square``, then a squared area
                ``(x: 0 to max 643, y: 0 to max 643)`` will be extracted from
                the image.
              * If a ``tuple``, then expected to contain four ``number`` s
                denoting ``(x1, y1, x2, y2)``.
              * If a :class:`~imgaug.augmentables.bbs.BoundingBox`, then that
                bounding box's area will be extracted from the image.
              * If a :class:`~imgaug.augmentables.bbs.BoundingBoxesOnImage`,
                then expected to contain exactly one bounding box and a shape
                matching the full image dimensions (i.e. ``(643, 960, *)``).
                Then the one bounding box will be used similar to
                ``BoundingBox`` above.
  
      Returns
      -------
      (H,W,3) ndarray
          The image array of dtype ``uint8``.
  
      """
      from . import imgaug as ia
  
      img = imageio.imread(_QUOKKA_FP, pilmode="RGB")
      if extract is not None:
          bb = _quokka_normalize_extract(extract)
          img = bb.extract_from_image(img)
      if size is not None:
          shape_resized = _compute_resized_shape(img.shape, size)
          img = ia.imresize_single_image(img, shape_resized[0:2])
      return img
  
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 3 for calling a global function with example usage: quokka(size, extract) and returns: img