code: def quokka_heatmap(size=None, extract=None):
      """Return a heatmap (here: depth map) for the standard example quokka image.
  
      Added in 0.5.0. (Moved from ``imgaug.imgaug``.)
  
      Parameters
      ----------
      size : None or float or tuple of int, optional
          See :func:`~imgaug.imgaug.quokka`.
  
      extract : None or 'square' or tuple of number or imgaug.augmentables.bbs.BoundingBox or imgaug.augmentables.bbs.BoundingBoxesOnImage
          See :func:`~imgaug.imgaug.quokka`.
  
      Returns
      -------
      imgaug.augmentables.heatmaps.HeatmapsOnImage
          Depth map as an heatmap object. Values close to ``0.0`` denote objects
          that are close to the camera. Values close to ``1.0`` denote objects
          that are furthest away (among all shown objects).
  
      """
      # TODO get rid of this deferred import
      from . import imgaug as ia
      from imgaug.augmentables.heatmaps import HeatmapsOnImage
  
      img = imageio.imread(_QUOKKA_DEPTH_MAP_HALFRES_FP, pilmode="RGB")
      img = ia.imresize_single_image(
          img, (643, 960), interpolation="cubic"
      )
  
      if extract is not None:
          bb = _quokka_normalize_extract(extract)
          img = bb.extract_from_image(img)
      if size is None:
          size = img.shape[0:2]
  
      shape_resized = _compute_resized_shape(img.shape, size)
      img = ia.imresize_single_image(img, shape_resized[0:2])
      img_0to1 = img[..., 0]  # depth map was saved as 3-channel RGB
      img_0to1 = img_0to1.astype(np.float32) / 255.0
      img_0to1 = (
          1 - img_0to1
      )  # depth map was saved as 0 being furthest away
  
      return HeatmapsOnImage(img_0to1, shape=img_0to1.shape[0:2] + (3,))
  
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 5 for calling a global function with example usage: quokka_heatmap(size, extract) and returns: HeatmapsOnImage