<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def charges(self, num, charge_id=None, **kwargs):
 """Search for charges against a company by company number. Args: num (str):
 Company number to search on. transaction (Optional[str]):
 Filing record number. kwargs (dict):
 additional keywords passed into requests.session.get params keyword. """

        baseuri = self._BASE_URI + "company/{}/charges".format(num)
        if charge_id is not None:
            baseuri += "/{}".format(charge_id)
            res = self.session.get(baseuri, params=kwargs)
        else:
            res = self.session.get(baseuri, params=kwargs)
        self.handle_http_error(res)
        return res