code: def test_replicas(deployment, query, replica_num):
      generator = mii.mii_query_handle(deployment)
      # Replicas are given queries in round-robin, so test each model is responding
      for _ in range(replica_num):
          result = generator.query(query)
          assert result
  
file_path: deepspeed-mii/tests/legacy/test_deployment_options.py
imports: import pytest
  import json
  import requests
  import mii.legacy
  from mii.legacy import pydantic_v1
label_desc: Use image node_id 4 for calling a global function with example usage: test_replicas(deployment, query, replica_num) without return types