code: def test_dataset_actionidpartitionkey() -> None:
      mock_obj = [UID() for _ in range(3)]
  
      assert ActionIDsPartitionKey.key == "action_ids"
      assert ActionIDsPartitionKey.type_ == List[UID]
  
      action_ids_partition_key = ActionIDsPartitionKey.with_obj(
          obj=mock_obj
      )
  
      assert isinstance(action_ids_partition_key, QueryKey)
      assert action_ids_partition_key.key == "action_ids"
      assert action_ids_partition_key.type_ == List[UID]
      assert action_ids_partition_key.value == mock_obj
  
      with pytest.raises(AttributeError):
          ActionIDsPartitionKey.with_obj(obj="dummy_str")
  
      # Not sure what Exception should be raised here, Type or Attibute
      with pytest.raises(TypeError):
          ActionIDsPartitionKey.with_obj(
              obj=["first_str", "second_str"]
          )
  
file_path: PySyft/packages/syft/tests/syft/dataset/dataset_stash_test.py
imports: from typing import List
  import pytest
  from syft.service.dataset.dataset import Dataset
  from syft.service.dataset.dataset_stash import ActionIDsPartitionKey
  from syft.service.dataset.dataset_stash import NamePartitionKey
  from syft.store.document_store import QueryKey
  from syft.types.uid import UID
label_desc: Use image node_id 2 for calling a global function with example usage: test_dataset_actionidpartitionkey() without return types