Set the Instant Pot® on Sauté mode and heat the oil. After about 3 minutes, add the cumin seeds and sauté until the seeds begin to sizzle. Add the onions and cook for 3 to 4 minutes, until they begin to wilt and soften. Add the garlic and ginger and cook for another 2 minutes. Stir in the tomatoes, garam masala, cayenne pepper powder, salt, and sugar, and cook for 5 minutes.