code: def test_basic_visualization(self, _):
      network = layers.join(
          layers.Input(10),
          layers.Relu(5),
          layers.parallel(
              layers.Relu(2),
              layers.Relu(3),
          ),
      )
      network.show()
  
      # 4 layers + 2 outputs
      self.assertEqual(6, self.events.count("add_node"))
  
      # 3 between layers + 2 between layers and extra output nodes
      self.assertEqual(5, self.events.count("add_edge"))
  
      # Always has to be called at the end
      self.assertEqual(1, self.events.count("render"))
      self.assertEqual(self.events[-1], "render")
  
      filepath = tempfile.mktemp()
      network.show(filepath)
      self.assertEqual(self.events[-2], filepath)
  
file_path: neupy/tests/layers/graph/test_visualizations.py
imports: import mock
  import tempfile
  import graphviz
  from neupy import layers
  from base import BaseTestCase
label_desc: Use image node_id 2 for calling the GraphVisualizationTestCase obj's underlying member method code with example usage: obj.test_basic_visualization(_) without return types