'Returns code example for block
First searches if there are highlighted divs, then seeks out the correct
div for code example.
Args:
body_soup: BeautifulSoup object containing section body
Returns:
Code block'

def parse_example(self, body_soup):

    highlight = body_soup.find('div', {'class': 'highlight-python'})
    if highlight:
        for p in body_soup.find_all('p'):
            content = p.get_text()
            if ('source    code' in content):
                text = p.findNext('div', {'class': 'highlight'}).get_text()
                return text.strip('\n')
    return ''
