code: def generate_anchor(ratio, scale, base_size):
      """Generate anchor"""
      w = h = float(base_size)
      x_ctr = 0.5 * (w - 1.0)
      y_ctr = 0.5 * (h - 1.0)
      size = w * h
      size_ratios = math.floor(size / ratio)
      new_w = math.floor(math.sqrt(size_ratios) + 0.5) * scale
      new_h = math.floor((new_w / scale * ratio) + 0.5) * scale
      return (
          x_ctr - 0.5 * (new_w - 1.0),
          y_ctr - 0.5 * (new_h - 1.0),
          x_ctr + 0.5 * (new_w - 1.0),
          y_ctr + 0.5 * (new_h - 1.0),
      )
  
file_path: tvm/python/tvm/topi/vision/rcnn/proposal.py
imports: import math
  import tvm
  from tvm import te
  from ...utils import get_const_tuple, get_const_int
  from ...sort import argsort
label_desc: Use image node_id 1 for calling a global function with example usage: generate_anchor(ratio, scale, base_size) and returns: unknown,  unknown,  unknown,  unknown