finely chopped onions are fried in a hot frying pan .