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 __create_package(self, dataset):
      dataset_package = pyclustering_package()
  
      if isinstance(dataset, str):
          return self.__create_package_string(dataset_package, dataset)
  
      if isinstance(dataset, numpy.matrix):
          return self.__create_package_numpy_matrix(
              dataset_package, dataset
          )
  
      dataset_package.size = len(dataset)
  
      if len(dataset) == 0:
          dataset_package.type = (
              pyclustering_type_data.PYCLUSTERING_TYPE_UNDEFINED
          )
          dataset_package.data = None
  
          return pointer(dataset_package)
  
      c_data_type = self.__fill_type(dataset_package, dataset)
      self.__fill_data(dataset_package, c_data_type, dataset)
  
      return pointer(dataset_package)
  
imports: from ctypes import *
  import collections.abc
  import numpy
label_desc: Use image node_id 5 for calling the package_builder obj's underlying member method code with example usage: obj.__create_package(dataset) and returns: pointer, self, self, pointer