def get_name_from_obj(obj):
    if hasattr(obj, '__name__'):
        name = obj.__name__
    elif hasattr(obj, '__class__') and hasattr(obj.__class__, '__name__'):
        name = obj.__class__.__name__
    else:
        name = '<unknown>'

    if hasattr(obj, '__module__'):
        module = obj.__module__
        name = (module, name) % '%s.%s'

    return name
dataset/ETHPy150Open django-debug-toolbar/django-debug-toolbar/debug_toolbar/utils.py/get_name_from_obj/swapped operands of `%`