code: def execute(self, fn, *args, **kwargs):
          
          if self.in_executor_context():
              return fn(*args, **kwargs)
          task = self.submit(fn, *args, **kwargs)
          return task.result()
docs: Execute an operation and return the result.