Lama ( Tibetan བླ་ མ་ Wylie bla-ma ; "head" or "high priest") is a title for a Tibetan teacher of the Dharma , related to the Sanskrit term guru .