code: def test_hidden_edges(self):
      hide_edges = [(2, 3), (8, 7), (222, 223)]
      edges_gone = self.hide_edges_filter(hide_edges)
      gview = self.gview
      G = gview(self.G, filter_edge=edges_gone)
      assert self.G.nodes == G.nodes
      if G.is_directed():
          assert self.G.edges - G.edges == {(2, 3)}
          assert list(G[2]) == []
          assert list(G.pred[3]) == []
          assert list(G.pred[2]) == [1]
          assert G.size() == 7
      else:
          assert self.G.edges - G.edges == {(2, 3), (7, 8)}
          assert list(G[2]) == [1]
          assert G.size() == 6
      assert list(G[3]) == [4]
      pytest.raises(KeyError, G.__getitem__, 221)
      pytest.raises(KeyError, G.__getitem__, 222)
      assert G.degree(3) == 1
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 3 for calling the TestSubGraphView obj's underlying member method code with example usage: obj.test_hidden_edges() without return types