code: def get_single_item(d):
      
      assert len(d) == 1, 'Single-item dict must have just one item, not %d.' % len(d)
      return next(six.iteritems(d))
docs: Get an item from a dict which contains just one item.