code: def _ratio_enum(anchor, ratios):
      """Enumerate a set of anchors for each aspect ratio wrt an anchor."""
      w, h, x_ctr, y_ctr = _whctrs(anchor)
      size = w * h
      size_ratios = size / ratios
      ws = np.round(np.sqrt(size_ratios))
      hs = np.round(ws * ratios)
      anchors = _mkanchors(ws, hs, x_ctr, y_ctr)
      return anchors
  
file_path: gluon-cv/gluoncv/model_zoo/rcnn/rpn/anchor.py
imports: from __future__ import absolute_import
  import numpy
  from mxnet import gluon
label_desc: Use image node_id 5 for calling a global function with example usage: _ratio_enum(anchor, ratios) and returns: anchors