Heat 2 tbsp oil in a pan. Add panch phoron and dry red chili, when the seeds start to splutter, add the eggplant and green chili (if using) and toss to coat them with the spices.
Cook on medium high heat to cook the eggplant and brown it slightly around the edges.
Add turmeric, tamarind paste, sugar and salt. Stir in 1cup of water and mix well. Add the raisins. Cover and cook till the eggplants are tender, but not mushy. The sauce will get thick at this stage. Add more water if you want the sauce to be soupy and thin.
Add the poppy or sesame seeds, if using and simmer for couple of minutes. Turn off the heat and sprinkle with cilantro. Serve in a small bowl at the end of the meal.