code: def get_memory_backend(params: MemoryBackendParameters):
      backend = None
      if type(params) == RedisPubSubMemoryBackendParameters:
          backend = RedisPubSubBackend(params)
  
      return backend
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_memory_backend(params) and returns: backend