def GetSmallestThumbnail(media_thumbnail_list):
  r = {}
  for thumb in media_thumbnail_list:
      r[int(thumb.width)*int(thumb.height)] = thumb
  keys = r.keys()
  keys.sort()
  return r[keys[0]]
The ipdoctest machinery must handle multiline examples gracefully.
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/photos/service.py/GetSmallestThumbnail--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/testing/plugin/test_ipdoctest.py/doctest_multiline1