docstr: Method:
  1. create a partition and insert data
  3. create rgA and rgB
  4. load partition with different replicas into rgA and rgB
  5. load partition with different replicas into default rg and rgA
docstr_tok: ["Method",":","1.","create","a","partition","and","insert","data","3.","create","rgA","and","rgB","4.","load","partition","with","different","replicas","into","rgA","and","rgB","5.","load","partition","with","different","replicas","into","default","rg","and","rgA"]
code: def test_load_partition_with_multi_replicas_multi_rgs(self, replicas):
      """
      Method:
      1. create a partition and insert data
      3. create rgA and rgB
      4. load partition with different replicas into rgA and rgB
      5. load partition with different replicas into default rg and rgA
      """
      self._connect()
      dim = ct.default_dim
      # 1. create a partition and insert data
      collection_w = self.init_collection_wrap()
      partition_name = cf.gen_unique_str("par")
      partition_w = self.init_partition_wrap(
          collection_w, partition_name
      )
      data = cf.gen_default_list_data(nb=3000)
      ins_res, _ = partition_w.insert(data)
      collection_w.create_index(
          ct.default_float_vec_field_name, ct.default_flat_index
      )
      # 3. create a rgA and rgB
      rgA_name = cf.gen_unique_str("rgA")
      self.init_resource_group(rgA_name)
      rgB_name = cf.gen_unique_str("rgB")
      self.init_resource_group(rgB_name)
  
      # load with different replicas
      error = {
          ct.err_code: 999,
          ct.err_msg: "failed to load partitions, err=failed to spawn replica for collection[resource group num can only be 0, 1 or same as replica number]",
      }
      partition_w.load(
          replica_number=replicas,
          _resource_groups=[rgA_name, rgB_name],
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
      error = {
          ct.err_code: 999,
          ct.err_msg: "failed to load partitions, err=load operation should use collection's resource group",
      }
      partition_w.load(
          replica_number=replicas,
          _resource_groups=[ct.default_resource_group_name, rgB_name],
          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 TestTransferNode obj's underlying member method code with example usage: obj.test_load_partition_with_multi_replicas_multi_rgs(replicas) without return types