def add_document(self, name, url, mimetype=None, **kwargs):
d = dict(name=name, url=url, **kwargs)<EOL>if mimetype:<EOL><INDENT>d['<STR_LIT>'] = mimetype<EOL><DEDENT>self['<STR_LIT>'].append(d)<EOL>
Add a document or media item that is related to the bill.
Use this method to add documents such as Fiscal Notes, Analyses,
Amendments, or public hearing recordings.

:param name: a name given to the document, e.g.
             'Fiscal Note for Amendment LCO 6544'
:param url: link to location of document or file
:param mimetype: MIME type of the document

If multiple formats of a document are provided, a good rule of
thumb is to prefer text, followed by html, followed by pdf/word/etc.