def search(self, queries=None):
        # Return a dictionary that contains a sorted list of names
        data = defaultdict(list)
        for title, value in self._run_search(queries):
            data[title].append(value)
        for datalist in data.values():
            datalist.sort(key=lambda x: 9999 if x[2] is None else x[2])
        return data
dataset/ETHPy150Open nandhp/python-imdb/imdb/parsers.py/_IMDbNamesParser.search/original