def METHOD_NAME(self, _, init_params, input_data, expected_shape, expected_centers):
    crop = RandWeightedCropd(**init_params)
    crop.set_random_state(10)
    result = crop(input_data)
    self.assertTrue(len(result) == init_params["num_samples"])
    _len = len(tuple(input_data.keys()))
    self.assertTupleEqual(tuple(result[0].keys())[:_len], tuple(input_data.keys()))