code: def cluster_tests(c, uvloop=False, protocol=2):
      """Run tests against a redis cluster"""
      cluster_url = "redis://localhost:16379/0"
      if uvloop:
          run(
              f"pytest --protocol={protocol} --cov=./ --cov-report=xml:coverage_cluster.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={cluster_url} --junit-xml=cluster-uvloop-results.xml --uvloop"
          )
      else:
          run(
              f"pytest --protocol={protocol} --cov=./ --cov-report=xml:coverage_clusteclient.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={cluster_url} --junit-xml=cluster-results.xml"
          )
  
file_path: redis-py/tasks.py
imports: import inspect
  import os
  import shutil
  from invoke import run, task
label_desc: Use image node_id 7 for calling a global function with example usage: cluster_tests(c, uvloop, protocol) without return types