class_docstr: !
  @brief Package builder provides service to create 'pyclustering_package' from data that is stored in 'list' container.
class_docstr_tok: ["!","@","brief","Package","builder","provides","service","to","create","'pyclustering_package","'","from","data","that","is","stored","in","'list","'","container","."]
code: def __fill_data(self, dataset_package, c_data_type, dataset):
      if (
          dataset_package.type
          == pyclustering_type_data.PYCLUSTERING_TYPE_LIST
      ):
          package_data = (
              POINTER(pyclustering_package) * len(dataset)
          )()
          for index in range(len(dataset)):
              package_data[index] = self.__create_package(
                  dataset[index]
              )
  
          dataset_package.data = cast(package_data, POINTER(c_void_p))
      else:
          array_object = (c_data_type * len(dataset))(*dataset)
          dataset_package.data = cast(array_object, POINTER(c_void_p))
  
imports: from ctypes import *
  import collections.abc
  import numpy
label_desc: Use image node_id 9 for calling the package_builder obj's underlying member method code with example usage: obj.__fill_data(dataset_package, c_data_type, dataset) without return types