code: def test_non_square_vs_square(self):
      bbsoi = iadata.quokka_bounding_boxes()
      img = iadata.quokka()
      patches = []
      for bb in bbsoi.bounding_boxes:
          patches.append(bb.extract_from_image(img))
  
      img_square = iadata.quokka(extract="square")
      bbsoi_square = iadata.quokka_bounding_boxes(extract="square")
      assert len(bbsoi.bounding_boxes) == len(
          bbsoi_square.bounding_boxes
      )
      assert bbsoi_square.shape == (643, 643, 3)
  
      for bb, patch in zip(bbsoi_square.bounding_boxes, patches):
          patch_square = bb.extract_from_image(img_square)
          assert (
              np.average(
                  np.abs(
                      patch.astype(np.float32)
                      - patch_square.astype(np.float32)
                  )
              )
              < 1.0
          )
  
imports: from __future__ import print_function, division, absolute_import
  import warnings
  import sys
  import numpy
  import imgaug
  import imgaug.data
  from imgaug.data import _quokka_normalize_extract, _compute_resized_shape
label_desc: Use image node_id 2 for calling the Test_quokka_bounding_boxes obj's underlying member method code with example usage: obj.test_non_square_vs_square() without return types