code: def get_op(input_len, output_len, args):
      input_names = ["in_scores", "in_boxes", "in_batch_splits"]
      assert input_len <= len(input_names)
      input_names = input_names[:input_len]
  
      out_names = [
          "scores",
          "boxes",
          "classes",
          "batch_splits",
          "keeps",
          "keeps_size",
      ]
      assert output_len <= len(out_names)
      out_names = out_names[:output_len]
  
      op = core.CreateOperator(
          "BoxWithNMSLimit", input_names, out_names, **args
      )
  
      return op
  
file_path: pytorch/caffe2/python/operator_test/box_with_nms_limit_op_test.py
imports: from caffe2.python import core
  import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
  from hypothesis import given, settings
  import hypothesis.strategies
  import unittest
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: get_op(input_len, output_len, args) and returns: op