code: def in_mem_action_graph_service(
      in_mem_graph_store: InMemoryActionGraphStore,
  ) -> ActionGraphService:
      return ActionGraphService(store=in_mem_graph_store)
  
imports: import numpy
  import pytest
  from syft.node.credentials import SyftSigningKey
  from syft.node.credentials import SyftVerifyKey
  from syft.service.action.action_graph import InMemoryActionGraphStore
  from syft.service.action.action_graph import InMemoryGraphConfig
  from syft.service.action.action_graph import NetworkXBackingStore
  from syft.service.action.action_graph import NodeActionData
  from syft.service.action.action_graph import NodeType
  from syft.service.action.action_graph_service import ActionGraphService
  from syft.service.action.action_object import Action
  from syft.service.action.action_object import ActionObject
label_desc: Use image node_id 9 for calling a global function with example usage: in_mem_action_graph_service(in_mem_graph_store) and returns: ActionGraphService