code: def test_inout_degree(self):
      edges_gone = self.hide_edges_filter(self.hide_edges)
      hide_nodes = [4, 5, 111]
      nodes_gone = nx.filters.hide_nodes(hide_nodes)
      G = self.gview(
          self.G, filter_node=nodes_gone, filter_edge=edges_gone
      )
  
      assert G.degree(2) == 3
      assert G.out_degree(2) == 2
      assert G.in_degree(2) == 1
      assert G.size() == 6
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 1 for calling the TestMultiDiGraphView obj's underlying member method code with example usage: obj.test_inout_degree() without return types