code: def multibox_prior(
      data,
      sizes=(1,),
      ratios=(1,),
      steps=(-1, -1),
      offsets=(0.5, 0.5),
      clip=False,
  ):
      """Generate prior(anchor) boxes from data, sizes and ratios.
  
      Parameters
      ----------
      data : tvm.te.Tensor
          4-D with shape [batch, c_in, h_in, w_in]]
  
      sizes : tuple of float
          Tuple of sizes for anchor boxes.
  
      ratios : tuple of float
          Tuple of ratios for anchor boxes.
  
      steps : Tuple of float
          Priorbox step across y and x, -1 for auto calculation.
  
      offsets : tuple of int
          Priorbox center offsets, y and x respectively.
  
      clip : boolean
          Whether to clip out-of-boundary boxes.
  
      Returns
      -------
      out : tvm.te.Tensor
          3-D tensor with shape [1, h_in * w_in * (num_sizes + num_ratios - 1), 4]
      """
      num_sizes = len(sizes)
      num_ratios = len(ratios)
      oshape = (
          1,
          data.shape[2] * data.shape[3] * (num_sizes + num_ratios - 1),
          4,
      )
      out = te.extern(
          oshape,
          [data],
          lambda ins, outs: multibox_prior_ir(
              ins[0], outs[0], sizes, ratios, steps, offsets
          ),
          tag="multibox_prior",
      )
      if clip:
          out = topi.clip(out, 0, 1)
      return out
  
file_path: tvm/python/tvm/topi/cuda/ssd/multibox.py
imports: import math
  import tvm
  from tvm import te
  from tvm.tir import if_then_else, exp
  from tvm import topi
  from ..nms import non_max_suppression
label_desc: Use image node_id 2 for calling a global function with example usage: multibox_prior(data, sizes, ratios, steps, offsets, clip) and returns: out