def register(dmm, typecls):
    """Used as decorator to simplify datamodel registration.
    Returns the object being decorated so that chaining is possible.
    """
    def wraps(fn):
        dmm.register(typecls, fn)
        return fn

    return wraps
Used as decorator to simplify datamodel registration.
    Returns the object being decorated so that chaining is possible.
    
numba/core/datamodel/registry.py