docstr: Method：
  1. prepare a collection with multi segments
  2. create rgA with 4 nodes
  3. reload 3 replicas into default rg
  4. transfer 3 replicas from default rg to rgA
  5. release and reload 3 replicas into rgA
  6. transfer 3 replicas from rgA to default rg
docstr_tok: ["Method\uff1a","1.","prepare","a","collection","with","multi","segments","2.","create","rgA","with","4","nodes","3.","reload","3","replicas","into","default","rg","4.","transfer","3","replicas","from","default","rg","to","rgA","5.","release","and","reload","3","replicas","into","rgA","6.","transfer","3","replicas","from","rgA","to","default","rg"]
code: def test_transfer_multi_replicas_from_to_default_rg(
      self, with_growing
  ):
      """
      Method：
      1. prepare a collection with multi segments
      2. create rgA with 4 nodes
      3. reload 3 replicas into default rg
      4. transfer 3 replicas from default rg to rgA
      5. release and reload 3 replicas into rgA
      6. transfer 3 replicas from rgA to default rg
      """
      self._connect()
      rgA_name = cf.gen_unique_str("rgA")
      self.init_resource_group(name=rgA_name)
  
      # transfer 4 nodes to rgA
      self.utility_wrap.transfer_node(
          source=ct.default_resource_group_name,
          target=rgA_name,
          num_node=4,
      )
  
      dim = 128
      collection_w = self.init_collection_wrap(shards_num=4)
      insert_ids = []
      nb = 500
      for i in range(5):
          res, _ = collection_w.insert(
              cf.gen_default_list_data(nb=nb, dim=dim, start=i * nb)
          )
          collection_w.flush()
          insert_ids.extend(res.primary_keys)
      collection_w.create_index(
          ct.default_float_vec_field_name, ct.default_flat_index
      )
  
      #  release collection and reload 2 replicas into rgA
      num_replica = 3
      collection_w.load(
          replica_number=num_replica,
          _resource_groups=[ct.default_resource_group_name],
      )
  
      # make growing
      if with_growing:
          res, _ = collection_w.insert(
              cf.gen_default_list_data(nb, dim=dim, start=6 * nb)
          )
          insert_ids.extend(res.primary_keys)
  
      # transfer 1/2/3 replicas from default rg to rgA
      self.utility_wrap.transfer_replica(
          source=ct.default_resource_group_name,
          target=rgA_name,
          collection_name=collection_w.name,
          num_replica=num_replica,
      )
      # verify search succ
      nq = 5
      vectors = [
          [random.random() for _ in range(dim)] for _ in range(nq)
      ]
      collection_w.search(
          vectors[:nq],
          ct.default_float_vec_field_name,
          ct.default_search_params,
          ct.default_limit,
          check_task=CheckTasks.check_search_results,
          check_items={
              "nq": nq,
              "ids": insert_ids.copy(),
              "limit": ct.default_limit,
          },
      )
      # release and reload 3 replicas into rgA
      collection_w.release()
      collection_w.load(
          replica_number=num_replica, _resource_groups=[rgA_name]
      )
  
      # make growing
      if with_growing:
          res, _ = collection_w.insert(
              cf.gen_default_list_data(nb, dim=dim, start=7 * nb)
          )
          insert_ids.extend(res.primary_keys)
  
      # transfer 1/2/3 replicas from rgA to default rg
      self.utility_wrap.transfer_replica(
          source=rgA_name,
          target=ct.default_resource_group_name,
          collection_name=collection_w.name,
          num_replica=num_replica,
      )
      # verify search succ
      collection_w.search(
          vectors[:nq],
          ct.default_float_vec_field_name,
          ct.default_search_params,
          ct.default_limit,
          check_task=CheckTasks.check_search_results,
          check_items={
              "nq": nq,
              "ids": insert_ids.copy(),
              "limit": ct.default_limit,
          },
      )
  
imports: import pytest
  from base.client_base import TestcaseBase
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
  from utils.util_pymilvus import *
label_desc: Use image node_id 4 for calling the TestResourceGroupMultiNodes obj's underlying member method code with example usage: obj.test_transfer_multi_replicas_from_to_default_rg(with_growing) without return types