code: def test_generaete_anchor_base(self):
      gt = np.array(
          [
              [-24.0, -120.0, 40.0, 136.0],
              [-56.0, -248.0, 72.0, 264.0],
              [-120.0, -504.0, 136.0, 520.0],
              [-56.0, -56.0, 72.0, 72.0],
              [-120.0, -120.0, 136.0, 136.0],
              [-248.0, -248.0, 264.0, 264.0],
              [-120.0, -24.0, 136.0, 40.0],
              [-248.0, -56.0, 264.0, 72.0],
              [-504.0, -120.0, 520.0, 136.0],
          ]
      )
  
      base_size = 16
      anchor_scales = [8, 16, 32]
      ratios = [0.25, 1, 4]
      out = generate_anchor_base(
          base_size=base_size,
          anchor_scales=anchor_scales,
          ratios=ratios,
      )
      np.testing.assert_equal(gt, out)
  
file_path: chainercv/tests/links_tests/model_tests/faster_rcnn_tests/utils_tests/test_generate_anchor_base.py
imports: from __future__ import division
  import unittest
  import numpy
  from chainer import testing
  from chainercv.links.model.faster_rcnn import generate_anchor_base
label_desc: Use image node_id 1 for calling the TestGenerateAnchorBase obj's underlying member method code with example usage: obj.test_generaete_anchor_base() without return types