<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cocitation(corpus, min_weight=1, edge_attrs=['ayjid', 'date'], **kwargs):
 """ Generate a cocitation network. A **cocitation network** is a network in which vertices are papers, and edges indicate that two papers were cited by the same third paper. `CiteSpace <http://cluster.cis.drexel.edu/~cchen/citespace/doc/jasist2006.pdf>`_ is a popular desktop application for co-citation analysis, and you can read about the theory behind it `here <http://cluster.cis.drexel.edu/~cchen/citespace/>`_. """

    return cooccurrence(corpus, 'citations', min_weight=min_weight,
                        edge_attrs=edge_attrs, **kwargs)