human
Get function name as a string in python
assistant
Here is some code to get the name of function `func` as a string

print(func.__name__)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.