code: def test_networkx_backing_store_subgraph(
      networkx_store_with_nodes: NetworkXBackingStore,
      verify_key: SyftVerifyKey,
  ):
      processing_status = ExecutionStatus.PROCESSING
      qks = QueryKeys(
          qks=[ExecutionStatusPartitionKey.with_obj(processing_status)]
      )
      subgraph = networkx_store_with_nodes.subgraph(qks)
      assert len(subgraph.nodes()) == 3
      assert len(subgraph.edges()) == 0
      # add a node with a status DONE
      action_node: NodeActionData = create_action_node(verify_key)
      action_node.status = ExecutionStatus.DONE
      networkx_store_with_nodes.set(
          uid=action_node.id, data=action_node
      )
      done_status = ExecutionStatus.DONE
      qks2 = QueryKeys(
          qks=[ExecutionStatusPartitionKey.with_obj(done_status)]
      )
      subgraph2 = networkx_store_with_nodes.subgraph(qks2)
      assert len(subgraph2.nodes()) == 1
      assert len(subgraph2.edges()) == 0
  
imports: import os
  from pathlib import Path
  import tempfile
  from threading import Thread
  import networkx
  from result import Err
  from syft.node.credentials import SyftVerifyKey
  from syft.service.action.action_graph import ExecutionStatus
  from syft.service.action.action_graph import InMemoryActionGraphStore
  from syft.service.action.action_graph import InMemoryGraphConfig
  from syft.service.action.action_graph import InMemoryStoreClientConfig
  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 ExecutionStatusPartitionKey
  from syft.service.action.action_object import Action
  from syft.service.action.action_object import ActionObject
  from syft.store.document_store import QueryKeys
  from syft.store.locks import NoLockingConfig
  from syft.types.datetime import DateTime
  from syft.types.syft_metaclass import Empty
  from syft.types.uid import UID
  from .fixtures import create_action_node
  from .fixtures import create_action_obj_node
label_desc: Use image node_id 11 for calling a global function with example usage: test_networkx_backing_store_subgraph(networkx_store_with_nodes, verify_key) without return types