def create_user(self, user, account_id=None):
if account_id is None:<EOL><INDENT>account_id = self._canvas_account_id<EOL>if account_id is None:<EOL><INDENT>raise MissingAccountID()<EOL><DEDENT><DEDENT>url = ACCOUNTS_API.format(account_id) + "<STR_LIT>"<EOL>data = self._post_resource(url, user.post_data())<EOL>return CanvasUser(data=data)<EOL>
Create and return a new user and pseudonym for an account.

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