code: def setup_tls(monkeypatch):
      from pathlib import Path
  
      tls_path = Path(__file__).parent
      monkeypatch.setenv(
          "RAY_REDIS_CA_CERT", f"{str(tls_path)}/tls/ca.crt"
      )
      monkeypatch.setenv(
          "RAY_REDIS_CLIENT_CERT", f"{str(tls_path)}/tls/redis.crt"
      )
      monkeypatch.setenv(
          "RAY_REDIS_CLIENT_KEY", f"{str(tls_path)}/tls/redis.key"
      )
      ray._raylet.Config.initialize("")
      yield
  
imports: import pytest
  import sys
  import ray
  from ray._private.test_utils import enable_external_redis
label_desc: Use image node_id 1 for calling a global function with example usage: setup_tls(monkeypatch) without return types