code: def templateAllToAllConnectionsTest(self, network):
      assert network.structure == conn_type.ALL_TO_ALL
  
      for i in range(0, len(network), 1):
          for j in range(0, len(network), 1):
              if i != j:
                  assert network.has_connection(i, j) == True
                  assert network.has_connection(j, i) == True
              else:
                  assert network.has_connection(i, j) == False
                  assert network.has_connection(j, i) == False
  
imports: import unittest
  import math
  from pyclustering.nnet import network, conn_type, conn_represent
label_desc: Use image node_id 1 for calling the NnetUnitTest obj's underlying member method code with example usage: obj.templateAllToAllConnectionsTest(network) without return types