code: def set_redis_timeouts(monkeypatch):
      monkeypatch.setattr(utils, "DEFAULT_TIMEOUT", 0.0001)
      monkeypatch.setattr(utils, "DEFAULT_CHECK_INTERVAL", 0.0005)
      monkeypatch.setattr(redis, "DEFAULT_UNAVAILABLE_TIMEOUT", 0.01)
      monkeypatch.setattr(redis, "DEFAULT_THREAD_SLEEP_TIME", 0.001)
      monkeypatch.setattr(_thread, "interrupt_main", lambda: None)
  
file_path: catboost/contrib/python/portalocker/py3/tests/test_redis.py
imports: import _thread
  import logging
  import random
  import time
  import pytest
  from redis import client
  from redis import exceptions
  import portalocker
  from portalocker import redis
  from portalocker import utils
label_desc: Use image node_id 1 for calling a global function with example usage: set_redis_timeouts(monkeypatch) without return types