def METHOD_NAME(
    m_path,
    m_locales,
    m_proj,
    m_tag,
    trs_mock,
):
    # tests all filter functions are called when filtering data
    # and that they are called with the result of previous
    stats_tool = TagsStatsTool()
    m = m_tag, m_proj, m_locales, m_path
    # mock trs for translated_resources.all()
    _m = MagicMock()
    _m.all.return_value = 0
    trs_mock.return_value = _m
    for i, _m in enumerate(m):
        if i >= len(m) - 1:
            _m.return_value = 23
        else:
            _m.return_value = i
    # get the filtered_data
    result = stats_tool.filtered_data
    assert result == 23
    for i, _m in enumerate(m):
        assert _m.called
        if i > 0:
            assert _m.call_args[0][0] == i - 1