code: def wrap_with_run_lock(func: Callable, redis_params: RedisParams):
      """Redis lock wrapper function for RunWithLock.
      When a fucntion is wrapped by RunWithLock, the wrapped function will be simply wrapped with redis lock.
      https://github.com/m3dev/gokart/issues/265
      """
      return _wrap_with_lock(func=func, redis_params=redis_params)
  
imports: import functools
  import os
  from logging import getLogger
  from typing import Callable, NamedTuple, Optional
  import redis
  from apscheduler.schedulers.background import BackgroundScheduler
label_desc: Use image node_id 5 for calling a global function with example usage: wrap_with_run_lock(func, redis_params) and returns: _wrap_with_lock