def METHOD_NAME(libraries: list, behaviour_class: str, indicators: list, tags: list):
    for library, indicator in ((lib, ind) for lib in libraries for ind in indicators):
        if re.search(indicator, library):
            tags.append(behaviour_class)