'Rebuild an instance.'

@classmethod
def _rebuild(cls, name, argtypes, cufunc, link, debug, call_helper, config):

    instance = cls.__new__(cls)
    super(cls, instance).__init__()
    instance.entry_name = name
    instance.argument_types = tuple(argtypes)
    instance.linking = tuple(link)
    instance._type_annotation = None
    instance._func = cufunc
    instance.debug = debug
    instance.call_helper = call_helper
    instance._deserialize_config(config)
    return instance
