Place a large lidded frying pan over medium heat.
Once hot, add the sesame seeds and toast, stirring frequently, for 2 to 3 minutes until golden brown. Immediately transfer to a plate to prevent burning and set aside.
Return the same pan to medium heat and add the oil.
When the oil is hot, add the cumin seeds, mustard seeds, and curry leaves (if using).
Stir for about a minute until the mustard seeds begin to pop and the curry leaves sizzle.
Add the sliced garlic and cook for another minute until fragrant, being careful not to let it brown.
Add the potato wedges, stir to coat, and cook for 3 minutes.
Pour 2 tablespoons (30 ml / 1 fl oz) of water into the pan, cover with the lid, and cook for 5 minutes to steam the potatoes.
Add the okra to the pan, increase the heat slightly, and stir everything together. Replace the lid and cook for 8 minutes. If the vegetables begin to stick, add a tablespoon of water and stir.
Uncover the pan and add the red pepper flakes, tamarind paste, turmeric, salt, and the toasted sesame seeds.
Stir well to coat all the vegetables, cover again, and cook for a final 4 minutes, or until both the potatoes and okra are tender.
Taste and adjust seasoning if necessary.
Serve immediately.
Cut the potatoes into uniform, bite-sized wedges to ensure they cook evenly and at the same rate as the okra.