code: def _mkanchors(ws, hs, x_ctr, y_ctr):
      """
      Given a vector of widths (ws) and heights (hs) around a center
      (x_ctr, y_ctr), output a set of anchors (windows).
      """
  
      ws = ws[:, np.newaxis]
      hs = hs[:, np.newaxis]
      anchors = np.hstack(
          (
              x_ctr - 0.5 * (ws - 1),
              y_ctr - 0.5 * (hs - 1),
              x_ctr + 0.5 * (ws - 1),
              y_ctr + 0.5 * (hs - 1),
          )
      )
      return anchors
  
file_path: insightface/detection/retinaface_anticov/rcnn/processing/generate_anchor.py
imports: from __future__ import print_function
  import sys
  from builtins import range
  import numpy
  from ..cython.anchors import anchors_cython
label_desc: Use image node_id 5 for calling a global function with example usage: _mkanchors(ws, hs, x_ctr, y_ctr) and returns: anchors