code: def templateConnectionsApi(size, ccore_flag):
      network = sync_network(
          size, 1, type_conn=conn_type.ALL_TO_ALL, ccore=ccore_flag
      )
      for i in range(len(network)):
          for j in range(len(network)):
              if i != j:
                  assert network.has_connection(i, j) == True
                  assert len(network.get_neighbors(i)) == size - 1, str(
                      network.get_neighbors(i)
                  )
                  assert len(network.get_neighbors(j)) == size - 1
  
file_path: pyclustering/pyclustering/nnet/tests/sync_templates.py
imports: import matplotlib
  from pyclustering.nnet import conn_type, solve_type, initial_type
  from pyclustering.nnet.sync import sync_network, sync_visualizer
label_desc: Use image node_id 2 for calling the SyncTestTemplates obj's underlying member method code with example usage: obj.templateConnectionsApi(size, ccore_flag) without return types