code: def legion_create(size, conn_type, params):
      ccore = ccore_library.get()
  
      c_params = c_legion_parameters()
      c_params.eps = params.eps
      c_params.alpha = params.alpha
      c_params.gamma = params.gamma
      c_params.betta = params.betta
      c_params.lamda = params.lamda
      c_params.teta = params.teta
      c_params.teta_x = params.teta_x
      c_params.teta_p = params.teta_p
      c_params.teta_xz = params.teta_xz
      c_params.T = params.T
      c_params.mu = params.mu
      c_params.Wz = params.Wz
      c_params.Wt = params.Wt
      c_params.fi = params.fi
      c_params.ro = params.ro
      c_params.I = params.I
      c_params.ENABLE_POTENTIONAL = params.ENABLE_POTENTIONAL
  
      ccore.legion_create.restype = POINTER(c_void_p)
      legion_network_pointer = ccore.legion_create(
          c_uint(size), c_uint(conn_type), pointer(c_params)
      )
  
      return legion_network_pointer
  
file_path: pyclustering/pyclustering/core/legion_wrapper.py
imports: from pyclustering.core.wrapper import *
  from pyclustering.core.pyclustering_package import pyclustering_package, package_extractor, package_builder
label_desc: Use image node_id 1 for calling a global function with example usage: legion_create(size, conn_type, params) and returns: legion_network_pointer