code: def test_action_graph_service_status(
      in_mem_action_graph_service: ActionGraphService,
      authed_context: AuthedServiceContext,
  ) -> None:
      """
      Test the update_action_status and get_by_action_status methods
      """
      action_obj_d = ActionObject.from_obj([1, 2, 3])
      in_mem_action_graph_service.add_action_obj(
          context=authed_context, action_obj=action_obj_d
      )
      action = Action(
          path="action.execute",
          op="np.array",
          remote_self=None,
          args=[action_obj_d.syft_lineage_id],
          kwargs={},
      )
      action_node, _ = in_mem_action_graph_service.add_action(
          context=authed_context, action=action
      )
  
      assert (
          len(
              in_mem_action_graph_service.get_by_action_status(
                  authed_context, ExecutionStatus.PROCESSING
              )
          )
          == 3
      )
  
      updated_node = in_mem_action_graph_service.update_action_status(
          context=authed_context,
          action_id=action_node.id,
          status=ExecutionStatus.DONE,
      )
  
      assert updated_node.status == ExecutionStatus.DONE
  
      done_nodes = in_mem_action_graph_service.get_by_action_status(
          authed_context, ExecutionStatus.DONE
      )
      assert len(done_nodes) == 1
      assert (
          done_nodes[0] == updated_node.id
      )  # should be just updated_node?
      assert (
          len(
              in_mem_action_graph_service.get_by_action_status(
                  authed_context, ExecutionStatus.PROCESSING
              )
          )
          == 2
      )
  
imports: from syft.node.credentials import SyftSigningKey
  from syft.node.credentials import SyftVerifyKey
  from syft.node.worker import Worker
  from syft.service.action.action_graph import ExecutionStatus
  from syft.service.action.action_graph import InMemoryActionGraphStore
  from syft.service.action.action_graph import NetworkXBackingStore
  from syft.service.action.action_graph import NodeActionData
  from syft.service.action.action_graph import NodeActionDataUpdate
  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
  from syft.service.context import AuthedServiceContext
  from syft.service.response import SyftError
  from syft.service.response import SyftSuccess
  from syft.types.datetime import DateTime
  from syft.types.uid import UID
label_desc: Use image node_id 7 for calling a global function with example usage: test_action_graph_service_status(in_mem_action_graph_service, authed_context) without return types