@classmethod
def _rebuild(cls, name, argtypes, cufunc, link, debug, call_helper,
    extensions, config):
    """
        Rebuild an instance.
        """
    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.extensions = extensions
    instance._deserialize_config(config)
    return instance
