import inspect


def get_function_name(count: int = 0) -> str:
    """
    Return the name of the function calling this function, i.e., the name of
    the function calling `get_function_name()`.
    """
    ptr = inspect.currentframe()
    # count=0 corresponds to the calling function, so we need to add an extra
    # step walking the call stack.
    count += 1
    for _ in range(count):
        assert ptr is not None
        ptr = ptr.f_back
    func_name = ptr.f_code.co_name  # type: ignore
    return func_name