def find_shortest_path(self, start, end):
        """
        Finds the shortest path between two image classes.

        This is similar to the find_all_paths function, except it only returns
        the path with the lowest cost.
        """
        current_path = None
        current_cost = None

        for path in self.find_all_paths(start, end):
            cost = self.get_path_cost(start, path)

            if current_cost is None or current_cost < cost:
                current_cost = cost
                current_path = path

        return current_path, current_cost
dataset/ETHPy150Open torchbox/Willow/willow/registry.py/WillowRegistry.find_shortest_path/swapped operands of `<`