A person is cooking a dish by sauteing onions, garlic, green chili, and ginger in a pan until they are cooked and soft.