code: def warm_function(func, context: str, *args, **kwargs):
      ctx.load(context)
      try:
          return func(*args, **kwargs)
      except Exception as e:
          raise RuntimeError(str(e)) from e
  
imports: import sys
  import time
  import threading
  from typing import Optional, Callable
  from concurrent.futures import ProcessPoolExecutor, Future
  from pandas import DataFrame
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.context import context
  from mindsdb.utilities.ml_task_queue.const import ML_TASK_TYPE
  from mindsdb.integrations.libs.learn_process import learn_process, predict_process
label_desc: Use image node_id 4 for calling a global function with example usage: warm_function(func, context) and returns: func