Bags ==== A shop represents a bag model with a :class:`tuple` of 3 elements: the first one is the name of the model (:class:`str`) and the other two are, respectively, the number of outer and inner pockets in this bag model (:class:`int`). Write the function :py:func:`bags` that takes a :class:`list` of bags (a list of tuples), and returns a dictionary (:class:`dict`) with the following characteristics: the key is a tuple with two integers, (number of outer pockets, number of inner pockets), and the value is a list with the names of those models that have these number of outer and inner pockets, ordered in the same way as in the given list of tuples. Models with no pockets must not appear in the dictionary. Save this function into the file ``bags.py``. Examples: .. literalinclude:: test-bags.txt :language: python :lines: 3- .. note:: You can download the file with tests :download:`test-bags.txt `. .. rubric:: Solutions A solution is provided in file :download:`bags.py `.