Soak the cowpeas for at least 4 hours or overnight. Wash thoroughly and drain the water.
In a pressure cooker add the soaked lobia / karamani, salt, garlic cloves, tomato and salt. Pressure cook for 6 whistles in low-medium flame and allow the pressure to release naturally. Save the remaining water to use while blending.
Heat oil in a pan or kadai, add mustard seeds and cumin seeds.
When they crackle add peppercorns and coriander seeds and roast them on low flame for a few seconds.
Now add shallots and dried red chilli.
Saute till shallots turn translucent and are slightly browned.
Add this mixture to the cooked cowpeas and allow them to completely cool down.
Transfer everything into a blender.
Blend into a coarse mixture. Add the leftover water from the pressure cooker to adjust the consistency.
Transfer the mixture into a bowl.
Heat oil in a pan and add mustard seeds. When mustard seeds crackle add curry leaves.
Add this tadka mixture to the mashed cowpeas.
Serve hot with steamed rice and a dollop of ghee.