code: def run_in_static_mode(func):
      """Decorate a function to run in static graph mode."""
  
      def runner(*args, **kwargs):
          with static_mode_guard():
              return func(*args, **kwargs)
  
      return runner
  
file_path: PaddleHub/paddlehub/compat/paddle_utils.py
imports: import contextlib
  import copy
  from typing import Callable
  from typing import List
  import paddle
  from paddle.framework import core
  from paddlehub.utils.utils import Version
label_desc: Use image node_id 11 for calling a global function with example usage: run_in_static_mode(func) and returns: runner, func