def METHOD_NAME(self, event, result, attr):
    """Annotate an event with data from MISP result.
    Add a comment to the event.
    Args:
        event:  The OpenSearch event object that contains type of value we search
                for and needs to be tagged or to add an attribute.
        result:  Dictionary with results from MISP.
        attr:  type of the current value.
    """
    msg = "Event that match files:   "
    for misp_attr in result:
        info = misp_attr["Event"]["info"]
        id_event = misp_attr["Event"]["id"]
        msg += f'"Event info": "{info}"'
        msg += f'- "url": {self.misp_url}/events/view/{id_event} || '
    event.add_comment(msg)
    event.add_tags([f"MISP-{attr}"])
    event.commit()