code: def __new__(cls, *args, **kwargs):
      key = (args, tuple(sorted(kwargs.items())))
      if cls not in cls._instances:
          cls._instances[cls] = {}
      if key not in cls._instances[cls]:
          cls._instances[cls][key] = super(RedisClient, cls).__new__(
              cls
          )
      return cls._instances[cls][key]
  
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 1 for calling the RedisClient obj's underlying member method code with example usage: obj.__new__(cls) and returns: cls