Although not required, it is suggested to soak the beans for at least 1 hour to avoid gastro intestinal problems.
Combine beans, garlic cloves (if using) and 4 cups of water in the Instant Pot.
Cook on Pressure Cooking mode for 10 minutes. 20 minutes for beans soaked 1-2 hours. 30 minutes for beans without any pre soaking.
Wait for natural release.
Remove beans and cooking liquid from the Instant Pot. Strain beans, reserving the cooking liquid.
On Saute mode, add the oil.
Add epis (or chopped onion and garlic). Saute for a few minutes to cook the epis, about 3 minutes.
Add rice and saute another 2-3 minutes to thoroughly coat the rice with the seasoning.
Add cloves and bouillon powder.
Add rice and 3 cups of the reserved cooking liquid.
Add cooked beans and stir to combine.
Cover and cook on high pressure for 4 minutes.
Wait for natural release.
Fluff with a fork and adjust salt, if necessary.