def create_report(self, report_type, account_id, term_id=None, params={}):
if term_id is not None:<EOL><INDENT>params["<STR_LIT>"] = term_id<EOL><DEDENT>url = ACCOUNTS_API.format(account_id) + "<STR_LIT>".format(<EOL>report_type)<EOL>body = {"<STR_LIT>": params}<EOL>data = self._post_resource(url, body)<EOL>data["<STR_LIT>"] = account_id<EOL>return Report(data=data)<EOL>
Generates a report instance for the canvas account id.

https://canvas.instructure.com/doc/api/account_reports.html#method.account_reports.create