code: def wrap_with_remove_lock(func, redis_params: RedisParams):
      """Redis lock wrapper function for TargetOnKart.remove().
      When TargetOnKart.remove() is called, remove() 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 8 for calling a global function with example usage: wrap_with_remove_lock(func, redis_params) and returns: _wrap_with_lock