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_dataset_type(self, dataset_package, dataset):
      if self.__is_container_type(dataset[0]):
          dataset_package.type = (
              pyclustering_type_data.PYCLUSTERING_TYPE_LIST
          )
  
      elif isinstance(dataset[0], int):
          dataset_package.type = (
              pyclustering_type_data.PYCLUSTERING_TYPE_LONG
          )
  
      elif isinstance(dataset[0], float):
          dataset_package.type = (
              pyclustering_type_data.PYCLUSTERING_TYPE_DOUBLE
          )
  
      else:
          raise NameError("Not supported type of pyclustering package.")
  
      return pyclustering_type_data.get_ctype(dataset_package.type)
  
imports: from ctypes import *
  import collections.abc
  import numpy
label_desc: Use image node_id 6 for calling the package_builder obj's underlying member method code with example usage: obj.__fill_dataset_type(dataset_package, dataset) and returns: pyclustering_type_data