human
I wrote the below code

    def do_register(prop_cls):
        'Register    a    subclass    of    CustomOpProp    to    the    registry.'
        class MXCallbackList(Structure, ):
            'Structure    that    holds    Callback    information.    Passed    to    CustomOpProp.'
            _fields_ = [('num_callbacks', c_int), ('callbacks', POINTER(CFUNCTYPE(c_int))), ('contexts', POINTER(c_void_p))]
        fb_functype = CFUNCTYPE(c_int, c_int, POINTER(c_void_p), POINTER(c_int), POINTER(c_int), c_int, c_void_p)
        del_functype = CFUNCTYPE(c_int, c_void_p)
        infershape_functype = CFUNCTYPE(c_int, c_int, POINTER(c_int), POINTER(POINTER(mx_uint)), c_void_p)
        infertype_functype = CFUNCTYPE(c_int, c_int, POINTER(c_int), c_void_p)
        list_functype = CFUNCTYPE(c_int, POINTER(POINTER(POINTER(c_char))), c_void_p)
        deps_functype = CFUNCTYPE(c_int, c_int_p, c_int_p, c_int_p, c_int_p, POINTER(c_int_p), c_void_p)
        createop_functype = CFUNCTYPE(c_int, c_char_p, c_int, POINTER(POINTER(mx_uint)), POINTER(c_int), POINTER(c_int), POINTER(MXCallbackList), c_void_p)
        req_enum = ('null', 'write', 'inplace', 'add')
        def creator(op_type, argc, keys, vals, ret):
            'internal    function'
            assert (py_str(op_type) == reg_name)
            kwargs = dict([(py_str(keys[i]), py_str(vals[i])) for i in range(argc)])
            op_prop = prop_cls(**kwargs)
            def infer_shape_entry(num_tensor, tensor_dims, tensor_shapes, _):
                'C    Callback    for    ``CustomOpProp::InferShape``.'
                try:
                    n_in = len(op_prop.list_arguments())
                    n_out = len(op_prop.list_outputs())
                    n_aux = len(op_prop.list_auxiliary_states())
                    assert (num_tensor == ((n_in + n_out) + n_aux))
                    shapes = [[tensor_shapes[i][j] for j in range(tensor_dims[i])] for i in range(n_in)]
                    ret = op_prop.infer_shape(shapes)
                    if (len(ret) == 2):
                       ...

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def register(reg_name):