def METHOD_NAME(dic_cabecalho, imagem):
    """Gera o codigo rml do cabecalho"""
    tmp_data = ''
    if os.path.isfile(imagem):
        tmp_data += '\t\t\t\t<image x="2.1cm" y="25.7cm" width="59" height="62" file="' + imagem + '"/>\n'
    tmp_data += '\t\t\t\t<lines>2cm 25cm 19cm 25cm</lines>\n'
    tmp_data += '\t\t\t\t<setFont name="Helvetica-Bold" size="16"/>\n'
    tmp_data += '\t\t\t\t<drawString x="5cm" y="27.1cm">' + \
        dic_cabecalho['nom_casa'] + '</drawString>\n'
    tmp_data += '\t\t\t\t<setFont name="Helvetica" size="13"/>\n'
    tmp_data += '\t\t\t\t<drawString x="5cm" y="26.5cm">' + \
        dic_cabecalho['nom_estado'] + '</drawString>\n'
    tmp_data += '\t\t\t\t<setFont name="Helvetica-Bold" size="13"/>\n'
    tmp_data += '\t\t\t\t<drawCentredString x="10.5cm" y="25.2cm">Relatório de Matérias Legislativas</drawCentredString>\n'
    return tmp_data