def METHOD_NAME(
    self,
    source: TestReport,
    tag_dict: Dict,
    filter_type: str,
) -> TestReport:
    """
    Creates a filtered clone of the report by filter type and tag context.
    :param source: Testplan report
    :param tag_dict: tag context for filtering
    :param filter_type: all / any
    :return: filtered clone
    """
    tag_label = tagging.tag_label(tag_dict)
    result = source.filter_by_tags(
        tag_dict, all_tags=filter_type == self.ALL
    )
    result.meta["report_tags_{}".format(filter_type)] = tag_label
    return result