def get_mode_type(self, name):
        for key in self.mode_types.keys():
            if name == self.mode_types[key]:
                return key
Return a mode type key name from its pretty name.
dataset/ETHPy150Open wizzomafizzo/starcheat/starcheat/assets/player.py/Player.get_mode_type