code: def pytest_terminal_summary(terminalreporter):
      from .test_ivy.conftest import mod_backend
  
      session = terminalreporter._session
  
      if session.testscollected == 0:
          return
  
      passed_ratio = 1 - (session.testsfailed / session.testscollected)
      text = f" {passed_ratio:.1%} of {session.testscollected} passed "
      text = text.center(terminalreporter._screen_width, "=")
      terminalreporter.write(content=Fore.GREEN + text)
      for key in mod_backend:
          if mod_backend[key]:
              mod_backend[key][0].terminate()
  
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 2 for calling a global function with example usage: pytest_terminal_summary(terminalreporter) without return types