def get_best_config(self, template=None):
        if template is None:
            template = gl.Config()
        configs = self.get_matching_configs(template)
        if not configs:
            raise window.NoSuchConfigException()
        return configs[0]
Looks for the given locale or the closest alternatives
dataset/ETHPy150Open ardekantur/pyglet/pyglet/canvas/base.py/Screen.get_best_config--crossover with--dataset/ETHPy150Open bigmlcom/python/bigml/util.py/find_locale