def _GeneratePendingCounts(self):
    d = {}
    for munki_name in [p.munki_name for p in models.PackageInfo.all()]:
      d[munki_name] = models.Computer.AllActive(keys_only=True).filter(
          'pkgs_to_install =', munki_name).count(999999)
    models.ReportsCache.SetPendingCounts(d)
Ensures an input is a tuple or list.
dataset/ETHPy150Open google/simian/src/simian/mac/cron/reports_cache.py/ReportsCache._GeneratePendingCounts--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/_helpers.py/_ensure_tuple_or_list