code: def redis():
      """start redis docker contaienr"""
      image_name = "redis:7.2.1"
      docker_client = docker.from_env()
      container_name = "mindsdb-test-redis"
  
      try:
          remove_container(container_name)
  
          docker_client.containers.run(
              image_name,
              detach=True,
              network="host",
              name=container_name,
          )
  
          # region check connection to redis
          db = Database(protocol=3)
          start_time = time.time()
          connected = False
          while (connected is False) and (
              time.time() - start_time < 30
          ):
              try:
                  connected = db.ping()
              except Exception:
                  pass
              time.sleep(1)
          if connected is False:
              raise Exception("Cant conect to redis in 10s")
          # endregion
  
          yield
      except Exception as e:
          print(f"Got exception during redis container starting: {e}")
          raise
      finally:
          remove_container(container_name)
          docker_client.close()
  
imports: import os
  import sys
  import time
  import json
  import subprocess
  from pathlib import Path
  import docker
  import pytest
  import psutil
  import requests
  import netifaces
  import pandas
  from walrus import Database
  from mindsdb.utilities.ps import get_child_pids
label_desc: Use image node_id 12 for calling a global function with example usage: redis() without return types