code: def test_shown_node(self):
      induced_subgraph = nx.filters.show_nodes([2, 3, 111])
      gview = self.gview
      G = gview(self.G, filter_node=induced_subgraph)
      assert set(G.nodes) == {2, 3}
      if G.is_directed():
          assert list(G[3]) == []
      else:
          assert list(G[3]) == [2]
      assert list(G[2]) == [3]
      pytest.raises(KeyError, G.__getitem__, 4)
      pytest.raises(KeyError, G.__getitem__, 112)
      pytest.raises(KeyError, G.__getitem__, 111)
      assert G.degree(3) == (3 if G.is_multigraph() else 1)
      assert G.size() == (3 if G.is_multigraph() else 1)
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 4 for calling the TestSubGraphView obj's underlying member method code with example usage: obj.test_shown_node() without return types