I\'m using function nameof to get the name of the object.
nameof
from varname import nameof att = dict() nameof(att)
Then it returns an err