code: def screenshots(screenshots_data, module_name):
      
      shots = screenshots_data.get(module_name)
      if not shots:
          return ""
  
      out = []
      for shot in file_sort(shots):
          if not os.path.exists("../doc/screenshots/%s.png" % shot):
              continue
          out.append(u"\n.. image:: screenshots/{}.png\n\n".format(shot))
      return u"".join(out)
docs: Create .rst output for any screenshots a module may have.