You likely saw a handheld vacuum sealer (e.g., FoodSaver). These portable devices remove air from specially designed bags with a valve, creating an airtight seal to preserve food freshness, prevent freezer burn, and extend shelf life.
Place the bag's open end into the vacuum chamber; the pump sucks out air through a one-way valve, then heat-seals the bag.