def METHOD_NAME(self, func, *argtys, **prune_types):
    """
    Asserts the the func compiled with argument types "argtys" reports
    refop pruning statistics. The **prune_types** kwargs list each kind
    of pruning and whether the stat should be zero (False) or >0 (True).
    Note: The exact statistic varies across platform.
    """
    with override_config('LLVM_REFPRUNE_PASS', '1'):
        cres = compile_isolated(func, (*argtys,))
    pstats = cres.metadata.get('prune_stats', None)
    self.assertIsNotNone(pstats)
    for k, v in prune_types.items():
        stat = getattr(pstats, k, None)
        self.assertIsNotNone(stat)
        msg = f'failed checking {k}'
        if v:
            self.assertGreater(stat, 0, msg=msg)
        else:
            self.assertEqual(stat, 0, msg=msg)