def METHOD_NAME(self, event, *eargs, **ekwargs):
    """Check whether the component loaded successfully"""
    cname = event.args[0]
    if isinstance(cname, Event):
        cname = cname.args[0]
    if cname in sys.modules:
        LOG.info("Loaded and registered component '%s'", cname)
        self.pending_components.remove(cname)
        if self.pending_components == []:
            self.finished = True
            self.fire(load_all_success())
    else:
        LOG.error("Failed to load component '%s'", cname)
        safe_but_noisy_import(cname)
        self.fire(load_all_failure())