In the Karandavyuha Sutra, the god Yama asks if the visitor in hell (Avalokitesvara) whom he hasn't seen yet is a god or a demon, and asks whether he is Vishnu, Mahesvara, or the rakshasa (demon) Rama.