<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def info(self, collector_id):
 """Return a dict of collector. Args: collector_id (int):
 id of collector (optional) """

        cid = self.collector_id
        if collector_id:
            cid = collector_id

        url = '{0}/{1}'.format(self.url, cid)
        request = requests.get(url, auth=self.auth)
        return request.json()