code: def test_redis_credential(monkeypatch):
      monkeypatch.setattr(queues, "REDIS_HOST", "test-host")
      monkeypatch.setattr(queues, "REDIS_PORT", "test-port")
      monkeypatch.setattr(queues, "REDIS_PASSWORD", "test-password")
      redis_queue = QueuingSystem.REDIS.get_readiness_queue()
      assert (
          redis_queue.redis.connection_pool.connection_kwargs["host"]
          == "test-host"
      )
      assert (
          redis_queue.redis.connection_pool.connection_kwargs["port"]
          == "test-port"
      )
      assert (
          redis_queue.redis.connection_pool.connection_kwargs[
              "password"
          ]
          == "test-password"
      )
  
imports: import base64
  import multiprocessing
  import pickle
  import queue
  import time
  from unittest import mock
  import pytest
  import requests_mock
  from lightning.app import LightningFlow
  from lightning.app.core import queues
  from lightning.app.core.constants import HTTP_QUEUE_URL, STATE_UPDATE_TIMEOUT
  from lightning.app.core.queues import READINESS_QUEUE_CONSTANT, BaseQueue, HTTPQueue, QueuingSystem, RateLimitedQueue, RedisQueue
  from lightning.app.utilities.imports import _is_redis_available
  from lightning.app.utilities.redis import check_if_redis_running
label_desc: Use image node_id 5 for calling a global function with example usage: test_redis_credential(monkeypatch) without return types