<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def collection(cls, cid):
 """ Get a Collection record """

        url = urljoin(config.API_URL, 'collections/%s' % cid)
        return Collection(cls.query(url=url))