def METHOD_NAME(tested_str: str, str_or_list_to_match_to: Union[List[str], str]) -> bool:
    """
    Return True if tested_str matches at least one element in str_or_list_to_match_to.
    :param tested_str: One of the supported entity types to be matched - currently possible to pass either
        NNCFNodeName (to refer to the original model operations) or QuantizerId (to refer to specific quantizers).
    :param str_or_list_to_match_to: A list of strings specifying for the serializable_id. Entries of the strings
        may be prefixed with `{re}` to enable regex matching.
    :return: A boolean value specifying whether a tested_str should matches at least one element
        in str_or_list_to_match_to.
    """
    if str_or_list_to_match_to is None:
        return False
    str_list = [str_or_list_to_match_to] if isinstance(str_or_list_to_match_to, str) else str_or_list_to_match_to
    for item in str_list:
        if "{re}" in item:
            regex = item.replace("{re}", "")
            if re.search(regex, tested_str):
                return True
        else:
            if tested_str == item:
                return True
    return False