code: def test_sqlite_store_partition_set(
      root_verify_key,
      sqlite_store_partition: SQLiteStorePartition,
  ) -> None:
      obj = MockSyftObject(data=1)
      res = sqlite_store_partition.set(
          root_verify_key, obj, ignore_duplicates=False
      )
  
      assert res.is_ok()
      assert res.ok() == obj
      assert (
          len(
              sqlite_store_partition.all(
                  root_verify_key,
              ).ok()
          )
          == 1
      )
  
      res = sqlite_store_partition.set(
          root_verify_key, obj, ignore_duplicates=False
      )
      assert res.is_err()
      assert (
          len(
              sqlite_store_partition.all(
                  root_verify_key,
              ).ok()
          )
          == 1
      )
  
      res = sqlite_store_partition.set(
          root_verify_key, obj, ignore_duplicates=True
      )
      assert res.is_ok()
      assert (
          len(
              sqlite_store_partition.all(
                  root_verify_key,
              ).ok()
          )
          == 1
      )
  
      obj2 = MockSyftObject(data=2)
      res = sqlite_store_partition.set(
          root_verify_key, obj2, ignore_duplicates=False
      )
      assert res.is_ok()
      assert res.ok() == obj2
      assert (
          len(
              sqlite_store_partition.all(
                  root_verify_key,
              ).ok()
          )
          == 2
      )
  
      for idx in range(REPEATS):
          obj = MockSyftObject(data=idx)
          res = sqlite_store_partition.set(
              root_verify_key, obj, ignore_duplicates=False
          )
          assert res.is_ok()
          assert (
              len(
                  sqlite_store_partition.all(
                      root_verify_key,
                  ).ok()
              )
              == 3 + idx
          )
  
file_path: PySyft/packages/syft/tests/syft/stores/sqlite_document_store_test.py
imports: from threading import Thread
  from typing import Tuple
  from joblib import Parallel
  from joblib import delayed
  import pytest
  from syft.store.document_store import QueryKeys
  from syft.store.sqlite_document_store import SQLiteStorePartition
  from .store_fixtures_test import sqlite_store_partition_fn
  from .store_mocks_test import MockObjectType
  from .store_mocks_test import MockSyftObject
label_desc: Use image node_id 2 for calling a global function with example usage: test_sqlite_store_partition_set(root_verify_key, sqlite_store_partition) without return types