docstr: Method:
  1. prepare a collection ready for searching
  2. transfer the replica from default rg to non_existing rg
docstr_tok: ["Method",":","1.","prepare","a","collection","ready","for","searching","2.","transfer","the","replica","from","default","rg","to","non_existing","rg"]
code: def test_transfer_replica_non_existing_rg(self):
      """
      Method:
      1. prepare a collection ready for searching
      2. transfer the replica from default rg to non_existing rg
      """
      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
      )
  
      # transfer replica to a non_existing rg
      rg_name = "non_existing"
      error = {
          ct.err_code: 999,
          ct.err_msg: f"the target resource group[{rg_name}] doesn't exist, err=resource group doesn't exist",
      }
      self.utility_wrap.transfer_replica(
          source=ct.default_resource_group_name,
          target=rg_name,
          collection_name=collection_w.name,
          num_replica=1,
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
      # transfer replica from a non_existing rg
      error = {
          ct.err_code: 999,
          ct.err_msg: f"the source resource group[{rg_name}] doesn't exist, err=resource group doesn't exist",
      }
      self.utility_wrap.transfer_replica(
          source=rg_name,
          target=ct.default_resource_group_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 9 for calling the TestResourceGroupMultiNodes obj's underlying member method code with example usage: obj.test_transfer_replica_non_existing_rg() without return types