docstr: Method：
  1. prepare a collection with 1 replica loaded
  2. create rgA
  3. transfer 3 nodes to rgA
  4. transfer 2 replicas to rgA
  verify fail with error
docstr_tok: ["Method\uff1a","1.","prepare","a","collection","with","1","replica","loaded","2.","create","rgA","3.","transfer","3","nodes","to","rgA","4.","transfer","2","replicas","to","rgA","verify","fail","with","error"]
code: def test_transfer_replica_not_enough_replicas_to_transfer(self):
      """
      Method：
      1. prepare a collection with 1 replica loaded
      2. create rgA
      3. transfer 3 nodes to rgA
      4. transfer 2 replicas to rgA
      verify fail with error
      """
      self._connect()
      dim = ct.default_dim
      # create a collectionA and insert data
      collection_w, _, _, insert_ids, _ = self.init_collection_general(
          insert_data=True, dim=dim
      )
      # create a rgA
      rg_name = cf.gen_unique_str("rg")
      self.init_resource_group(rg_name)
      # transfer 3 nodes to rgA
      self.utility_wrap.transfer_node(
          source=ct.default_resource_group_name,
          target=rg_name,
          num_node=3,
      )
  
      # transfer 2 replicas to rgA
      error = {
          ct.err_code: 5,
          ct.err_msg: f"only found [1] replicas in source resource group[{ct.default_resource_group_name}]",
      }
      self.utility_wrap.transfer_replica(
          source=ct.default_resource_group_name,
          target=rg_name,
          collection_name=collection_w.name,
          num_replica=2,
          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 8 for calling the TestResourceGroupMultiNodes obj's underlying member method code with example usage: obj.test_transfer_replica_not_enough_replicas_to_transfer() without return types