def METHOD_NAME(cls):
    temp_db_path = cls.fixture_db_path + ".tmp"
    if os.path.exists(temp_db_path):
        os.unlink(temp_db_path)
    connection = sqlite3.connect(temp_db_path)
    connection.executescript(
        """
        CREATE TABLE data (key TEXT, value BLOB);
        CREATE TABLE environment_metadata (key TEXT, value TEXT);
        """
    )
    json_data = {}
    for key, value in cls.generate_test_values():
        json_value = value
        if hasattr(value, "todense"):
            json_value = json_value.todense()
        json_data[key] = {
            "type": type(value).__name__,
            "value": json_value.tolist(),
        }
        if ".uncompressed" in key:
            data = serialize(value)
        elif ".compressed" in key:
            data = serialize_compressed(value)
        else:
            raise RuntimeError("Invalid key")
        connection.execute("INSERT INTO data VALUES (?, ?)", [key, data])
    for key, value in cls.get_environment_metadata():
        connection.execute(
            "INSERT INTO environment_metadata VALUES (?, ?)", [key, value]
        )
    connection.commit()
    connection.close()
    os.rename(temp_db_path, cls.fixture_db_path)
    with open(cls.fixture_json_path, "w") as f:
        json.dump(json_data, f, indent=2)