def METHOD_NAME(dns_mock):
    dns_mock.reset_stats()
    class _DnsStats:
        def get_stats(self) -> int:
            return dns_mock.get_stats()
        def get_queries(self) -> list:
            return dns_mock.get_queries()
    return _DnsStats()