code: def test_in_memory_action_graph_serde(
      obj: Any, request: FixtureRequest, verify_key: SyftVerifyKey
  ) -> None:
      in_memory_graph: InMemoryActionGraphStore = (
          request.getfixturevalue(obj)
      )
      serialized_graph: bytes = sy.serialize(
          in_memory_graph, to_bytes=True
      )
      deserialized_graph = sy.deserialize(
          serialized_graph, from_bytes=True
      )
  
      assert isinstance(deserialized_graph, type(in_memory_graph))
      assert isinstance(
          deserialized_graph.graph, type(in_memory_graph.graph)
      )
      assert isinstance(
          deserialized_graph.graph.db, type(in_memory_graph.graph.db)
      )
      assert deserialized_graph.edges(
          verify_key
      ) == in_memory_graph.edges(verify_key)
      assert deserialized_graph.nodes(
          verify_key
      ) == in_memory_graph.nodes(verify_key)
  
file_path: PySyft/packages/syft/tests/syft/action_graph/action_graph_serde_test.py
imports: from typing import Any
  import pytest
  from pytest import FixtureRequest
  import syft
  from syft.node.credentials import SyftVerifyKey
  from syft.service.action.action_graph import InMemoryActionGraphStore
  from syft.service.action.action_graph import NodeActionData
  from .fixtures import create_action_node
label_desc: Use image node_id 2 for calling a global function with example usage: test_in_memory_action_graph_serde(obj, request, verify_key) without return types