code: def dict_to_switch(d):
      
      def lookup(query):
          return d[query]
      lookup._always_inline_ = True
      unrolling_items = unrolling_iterable(d.items())
      return lookup
docs: Convert of dictionary with integer keys to a switch statement.