parameters: (example_url, label)
return_statement: return doc_block
docstring: Return the documentation block to be inserted in the header file for the given example.
  
      :param example_url: The URL for the example page.
      :param label: The label to use as the header.
      :return: The documentation string to be inserted.
docstring_summary: Return the documentation block to be inserted in the header file for the given example.
docstring_tokens: Return the documentation block to be inserted in the header file for the given example .
function: def docblock_from_example(example_url, label):
      """
      Return the documentation block to be inserted in the header file for the given example.
  
      :param example_url: The URL for the example page.
      :param label: The label to use as the header.
      :return: The documentation string to be inserted.
      """
      doc_block = "\n"
  
      e = decompose_exampleurl(example_url)
      if e is None:
          logging.error("Could not decompose example url to its language, module and name. Skipping..",
                        example_url)
          return None
      doc_block += " "*6 + "<a href=\"" + example_url + "\">\n"
      example_img_url = imageurl_from_exampleurl(e[0], e[1], e[2])
      if example_img_url is not None:
          # Hover feedback container
          doc_block += " "*8 + "<div class=\"examplegrid_container\">\n"
          # Image url
          doc_block += " "*10 + "<img src=\"" + example_img_url + "\">\n"
          # Overlay
          doc_block += " "*10 + "<div class=\"examplegrid_overlay\">\n"
          # Overlay text
          doc_block += " "*12 + \
              "<div class=\"examplegrid_text\">" + e[2] + "</div>\n"
          # Close overlay
          doc_block += " "*10 + "</div>\n"
          # Close hover feedback container
          doc_block += " "*8 + "</div>\n"
      doc_block += " "*6 + "</a>\n"
      return doc_block
function_tokens: def docblock_from_example ( example_url , label ) : doc_block = "\n" e = decompose_exampleurl ( example_url ) if e is None : logging . error ( "Could not decompose example url to its language, module and name. Skipping.." , example_url ) return None doc_block += " " * 6 + "<a href=\"" + example_url + "\">\n" example_img_url = imageurl_from_exampleurl ( e [ 0 ] , e [ 1 ] , e [ 2 ] ) if example_img_url is not None : # Hover feedback container doc_block += " " * 8 + "<div class=\"examplegrid_container\">\n" # Image url doc_block += " " * 10 + "<img src=\"" + example_img_url + "\">\n" # Overlay doc_block += " " * 10 + "<div class=\"examplegrid_overlay\">\n" # Overlay text doc_block += " " * 12 + "<div class=\"examplegrid_text\">" + e [ 2 ] + "</div>\n" # Close overlay doc_block += " " * 10 + "</div>\n" # Close hover feedback container doc_block += " " * 8 + "</div>\n" doc_block += " " * 6 + "</a>\n" return doc_block