docstr: A decorator for registering gradient mappings.
docstr_tok: ["A","decorator","for","registering","gradient","mappings","."]
code: def Register(cls, op_name):
      """A decorator for registering gradient mappings."""
  
      def Wrapper(func):
          cls.registry_[op_name] = func
          return func
  
      return Wrapper
  
imports: import argparse
  import copy
  import logging
  import re
  import numpy
  from caffe2.proto import caffe2_pb2, caffe2_legacy_pb2
  from caffe.proto import caffe_pb2
  from caffe2.python import core, utils, workspace
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling the TranslatorRegistry obj's underlying member method code with example usage: obj.Register(cls, op_name) and returns: Wrapper, func