'Extract the Example Code Snippet'

def parse_example(self, api):

    example_code = ''
    for tag in api.next_siblings:
        if (not isinstance(tag, element.Tag)):
            continue
        if (tag.name == 'div'):
            code = str(tag.find('pre'))
            if (code != 'None'):
                example_code = tag.text.strip()
    example_code += '\n'
    return example_code.replace('\n', '\\n')
