def METHOD_NAME(self, request, connection_with_config_funcs):
    as_connection = connection_with_config_funcs
    if self.server_version < [6, 0]:
        pytest.mark.xfail(reason="Servers older than 6.0 do not support batch read.")
        pytest.xfail()
    self.test_ns = "test"
    self.test_set = "demo"
    self.keys = []
    self.keys_to_expected_bins = {}
    self.batch_size = 5
    for i in range(self.batch_size):
        key = ("test", "demo", i)
        rec = {
            "count": i,
            "ilist_bin": [
                i,
                1,
                2,
                6,
            ],
            "imap_bin": {
                1: 1,
                2: 2,
                3: 6,
            },
        }
        as_connection.put(key, rec)
        self.keys.append(key)
        self.keys_to_expected_bins[key] = rec
    def teardown():
        for i in range(self.batch_size):
            key = ("test", "demo", i)
            as_connection.remove(key)
    request.addfinalizer(teardown)