Hi @ayberk.halac,
Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account.
POST /users/{id | userPrincipalName}/authentication/passwordMethods/{id}/resetPassword
There is no mention of code or snipper for Python :https://learn.microsoft.com/en-us/graph/api/authenticationmethod-resetpassword?view=graph-rest-1.0&tabs=javascript#example-1-user-submitted-password
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".