code: def kv_store_partition(worker):
      store_config = MockStoreConfig()
      settings = PartitionSettings(
          name="test", object_type=MockObjectType
      )
      store = KeyValueStorePartition(
          root_verify_key=worker.root_client.credentials.verify_key,
          settings=settings,
          store_config=store_config,
      )
  
      res = store.init_store()
      assert res.is_ok()
  
      return store
  
file_path: PySyft/packages/syft/tests/syft/stores/kv_document_store_test.py
imports: from copy import copy
  from threading import Thread
  import pytest
  from syft.store.document_store import PartitionSettings
  from syft.store.document_store import QueryKeys
  from syft.store.kv_document_store import KeyValueStorePartition
  from .store_mocks_test import MockObjectType
  from .store_mocks_test import MockStoreConfig
  from .store_mocks_test import MockSyftObject
label_desc: Use image node_id 1 for calling a global function with example usage: kv_store_partition(worker) and returns: store