def GroupsThatExist(self, groups_list):
    """Return all the groups in groups_list that exist on the machine."""

    def GroupExists(group):
      try:
        self.grp.getgrnam(group)
        return True
      except __HOLE__:
        return False

    return filter(GroupExists, groups_list)
dataset/ETHPy150Open GoogleCloudPlatform/compute-image-packages/google-daemon/usr/share/google/google_daemon/accounts.py/Accounts.GroupsThatExist