human
Complete the below
def ftrace(func):

    ''''Decorator used for marking the beginning and end of function calls.
    Automatically indents nested calls.'
    '''

Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def w(*args, **kargs):
        global __ftraceDepth
        pfx = ('        ' * __ftraceDepth)
        print(((pfx + func.__name__) + '    start'))
        __ftraceDepth += 1
        try:
            rv = func(*args, **kargs)
        finally:
            __ftraceDepth -= 1
        print(((pfx + func.__name__) + '    done'))
        return rv
    return w