code: def is_db_available(master=False, credentials=None):
      global redis_connect_dev, redis_connect_master
      redis_connect_local = None
      if master:
          redis_connect_master = redis.Redis.from_url(
              url=credentials[0], password=credentials[1]
          )
          redis_connect_local = redis_connect_master
      else:
          redis_connect_dev = redis.Redis.from_url(
              url="redis://redis-17011.c259.us-central1-2.gce.cloud.redislabs.com:17011",
              username="general_use",
              password="Hypothesiscache@123",
              max_connections=2,
          )
          redis_connect_local = redis_connect_dev
      try:
          redis_connect_local.get("b")
      except redis.exceptions.ConnectionError:
          print("Fallback to DirectoryBasedExamples")
          return False
      return True
  
file_path: ivy/ivy_tests/conftest.py
imports: import os
  import redis
  from colorama import Fore
  from hypothesis import settings, HealthCheck, Phase
  from hypothesis.database import MultiplexedDatabase, ReadOnlyDatabase, DirectoryBasedExampleDatabase
  from hypothesis.extra.redis import RedisExampleDatabase
label_desc: Use image node_id 1 for calling a global function with example usage: is_db_available(master, credentials) and returns: True, False