code: def roi_pool(
      g, input, rois, spatial_scale, pooled_height, pooled_width
  ):
      roi_pool = g.op(
          "MaxRoiPool",
          input,
          rois,
          pooled_shape_i=(pooled_height, pooled_width),
          spatial_scale_f=spatial_scale,
      )
      return roi_pool, None
  
file_path: vision/torchvision/ops/_register_onnx_ops.py
imports: import sys
  import warnings
  import torch
  from torch.onnx import symbolic_opset11
  from torch.onnx.symbolic_helper import parse_args
label_desc: Use image node_id 7 for calling a global function with example usage: roi_pool(g, input, rois, spatial_scale, pooled_height, pooled_width) and returns: roi_pool,  None