code: def test_partial_subgraph(self):
      G = self.K3
      H = nx.induced_subgraph(G, 0)
      assert dict(H.adj) == {0: {}}
      assert dict(G.adj) != {0: {}}
  
      H = nx.induced_subgraph(G, [0, 1])
      assert dict(H.adj) == {0: {1: {}}, 1: {0: {}}}
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 3 for calling the TestInducedSubGraph obj's underlying member method code with example usage: obj.test_partial_subgraph() without return types