human
What is a the Python program you requested given the following:
Complete the below
def call_once(factory_func):

    ''''When a function is annotated by this decorator, it will be only executed once. The result will
    be cached and return for following invocations.'
    '''
assistant
#Here is the Python program you requested.
    factory_func.executed = False
    factory_func.cached_result = None
    def _wrapped(*args, **kwargs):
        if (not factory_func.executed):
            factory_func.cached_result = factory_func(*args, **kwargs)
        return factory_func.cached_result
    return _wrapped