code: def test_raise_connection_exception_redis_lock_store(
      monkeypatch: MonkeyPatch,
  ):
      monkeypatch.setattr(
          rasa.core.lock_store,
          "RedisLockStore",
          Mock(side_effect=ConnectionError()),
      )
  
      with pytest.raises(ConnectionException):
          LockStore.create(
              EndpointConfig(
                  username="username", password="password", type="redis"
              )
          )
  
imports: import asyncio
  import logging
  import sys
  import time
  from pathlib import Path
  from typing import Text
  from unittest.mock import Mock, patch
  import numpy
  import pytest
  import rasa.core.lock_store
  from _pytest.logging import LogCaptureFixture
  from _pytest.monkeypatch import MonkeyPatch
  from rasa.core.agent import Agent
  from rasa.core.channels import UserMessage
  from rasa.core.constants import DEFAULT_LOCK_LIFETIME
  from rasa.core.lock import TicketLock
  from rasa.core.lock_store import DEFAULT_REDIS_LOCK_STORE_KEY_PREFIX, InMemoryLockStore, LockError, LockStore, RedisLockStore
  from rasa.shared.constants import INTENT_MESSAGE_PREFIX
  from rasa.shared.exceptions import ConnectionException
  from rasa.utils.endpoints import EndpointConfig, read_endpoint_config
label_desc: Use image node_id 4 for calling a global function with example usage: test_raise_connection_exception_redis_lock_store(monkeypatch) without return types