def charges(self, num, charge_id=None, **kwargs):
baseuri = self._BASE_URI + "<STR_LIT>".format(num)<EOL>if charge_id is not None:<EOL><INDENT>baseuri += "<STR_LIT>".format(charge_id)<EOL>res = self.session.get(baseuri, params=kwargs)<EOL><DEDENT>else:<EOL><INDENT>res = self.session.get(baseuri, params=kwargs)<EOL><DEDENT>self.handle_http_error(res)<EOL>return res<EOL>
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.