def METHOD_NAME(func, version, names, domain, kwargs):
    """Register handler.
    :param func: The handler.
    :param version: (int) The opset of onnx (or other domain) required for the handler.
    :param names: List of names of the operators to convert.
    :param domain: The domain the handler requires, defaults to onnx.
    """
    opset = tf_op._OPSETS.get(domain)
    if not opset:
        opset = []
        tf_op._OPSETS[domain] = opset
    while version >= len(opset):
        opset.append({})
    opset_dict = opset[version]
    for name in names:
        opset_dict[name] = (func, kwargs)