def METHOD_NAME(self, request, as_connection):
    # TODO this should be changed to 6.0 before release.
    if self.server_version < [5, 6]:
        pytest.mark.xfail(reason="Servers older than 5.6 do not support batch get ops.")
        pytest.xfail()
    self.test_ns = "test"
    self.test_set = "demo"
    self.keys = []
    self.rec_count = 5
    for i in range(self.rec_count):
        key = ("test", "demo", i)
        rec = {
            "name": "name10",
            "t": True,
            "age": 10,
            "balance": 100,
            "key": 10,
            "ilist_bin": [
                1,
                2,
                6,
            ],
            "imap_bin": {
                1: 1,
                2: 2,
                3: 6,
            },
        }
        as_connection.put(key, rec)
        self.keys.append(key)
    def teardown():
        for i in range(self.rec_count):
            key = ("test", "demo", i)
            as_connection.remove(key)
    request.addfinalizer(teardown)