import inspect


def get_function_name() -> str:
    """Returns the current function name in which get_function_name is called"""
    frame = inspect.currentframe()
    function_name = inspect.getouterframes(frame)[4].function

    if function_name == '<module>':
        return '__root__'
    else:
        return function_name + '()'