docstr: Method：
  1. prepare a collection with multi segments
  2. create rgA and rgB
  3. transfer 1 node to rgA and 2 nodes to rgB
  4. load 2 replicas in rgA and rgB
  5. transfer 1 replica from rgB to rgA
  verify fail with error
  6. transfer 1 replica from rgA to rgB
  verify fail with error
  7. release collection and reload 2 replicas into rgA
  8. transfer 2 replicas from rgA to rgB
docstr_tok: ["Method\uff1a","1.","prepare","a","collection","with","multi","segments","2.","create","rgA","and","rgB","3.","transfer","1","node","to","rgA","and","2","nodes","to","rgB","4.","load","2","replicas","in","rgA","and","rgB","5.","transfer","1","replica","from","rgB","to","rgA","verify","fail","with","error","6.","transfer","1","replica","from","rgA","to","rgB","verify","fail","with","error","7.","release","collection","and","reload","2","replicas","into","rgA","8.","transfer","2","replicas","from","rgA","to","rgB"]
code: def test_transfer_replica_into_same_rg(self, with_growing):
      """
      Method：
      1. prepare a collection with multi segments
      2. create rgA and rgB
      3. transfer 1 node to rgA and 2 nodes to rgB
      4. load 2 replicas in rgA and rgB
      5. transfer 1 replica from rgB to rgA
      verify fail with error
      6. transfer 1 replica from rgA to rgB
      verify fail with error
      7. release collection and reload 2 replicas into rgA
      8. transfer 2 replicas from rgA to rgB
      """
      self._connect()
      rgA_name = cf.gen_unique_str("rgA")
      self.init_resource_group(name=rgA_name)
      rgB_name = cf.gen_unique_str("rgB")
      self.init_resource_group(name=rgB_name)
  
      # transfer 1 nodes to rgA, 2 nodes to rgB
      self.utility_wrap.transfer_node(
          source=ct.default_resource_group_name,
          target=rgA_name,
          num_node=2,
      )
      self.utility_wrap.transfer_node(
          source=ct.default_resource_group_name,
          target=rgB_name,
          num_node=3,
      )
  
      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
      )
  
      collection_w.load(
          replica_number=2, _resource_groups=[rgA_name, rgB_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)
  
      nq = 5
      vectors = [
          [random.random() for _ in range(dim)] for _ in range(nq)
      ]
      # 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,
          },
      )
  
      # transfer 1 replica from rgB to rgA
      error = {
          ct.err_code: 999,
          ct.err_msg: f"found [1] replicas of same collection in target resource group[{rgA_name}], dynamically increase replica num is unsupported",
      }
      self.utility_wrap.transfer_replica(
          source=rgB_name,
          target=rgA_name,
          collection_name=collection_w.name,
          num_replica=1,
          check_task=CheckTasks.err_res,
          check_items=error,
      )
      # transfer 1 replica from rgA to rgB
      error = {
          ct.err_code: 999,
          ct.err_msg: f"found [1] replicas of same collection in target resource group[{rgB_name}], dynamically increase replica num is unsupported",
      }
      self.utility_wrap.transfer_replica(
          source=rgA_name,
          target=rgB_name,
          collection_name=collection_w.name,
          num_replica=1,
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
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 6 for calling the TestResourceGroupMultiNodes obj's underlying member method code with example usage: obj.test_transfer_replica_into_same_rg(with_growing) without return types