code: def templateBidirListConnectionsTest(self, network):
      assert network.structure == conn_type.LIST_BIDIR
  
      for index in range(0, len(network), 1):
          if index > 0:
              assert network.has_connection(index, index - 1) == True
              assert network.has_connection(index - 1, index) == True
  
          if index < (len(network) - 1):
              assert network.has_connection(index, index + 1) == True
              assert network.has_connection(index + 1, index) == True
  
imports: import unittest
  import math
  from pyclustering.nnet import network, conn_type, conn_represent
label_desc: Use image node_id 11 for calling the NnetUnitTest obj's underlying member method code with example usage: obj.templateBidirListConnectionsTest(network) without return types