Heat 1tbsp oil in a kadhai/pan. Add the whole garam masalas (green cardamom, cloves, cinnamon and peppercorns). Then add sliced onion. Saute for 2mins. Then add the ginger and garlic. Stir. Then add cashews and poppy seeds. Mix well. Remove from flame and let it cool. Add 1tbsp milk and grind to a fine paste. Keep aside