code: def clique(sample, intervals, threshold):
      pointer_data = package_builder(sample, c_double).create()
  
      ccore = ccore_library.get()
  
      ccore.clique_algorithm.restype = POINTER(pyclustering_package)
      package = ccore.clique_algorithm(
          pointer_data, c_size_t(intervals), c_size_t(threshold)
      )
  
      results = package_extractor(package).extract()
      ccore.free_pyclustering_package(package)
  
      if isinstance(results, bytes):
          raise RuntimeError(results.decode("utf-8"))
  
      return (
          results[clique_package_indexer.CLIQUE_PACKAGE_INDEX_CLUSTERS],
          results[clique_package_indexer.CLIQUE_PACKAGE_INDEX_NOISE],
          results[
              clique_package_indexer.CLIQUE_PACKAGE_INDEX_LOGICAL_LOCATION
          ],
          results[
              clique_package_indexer.CLIQUE_PACKAGE_INDEX_MAX_CORNER
          ],
          results[
              clique_package_indexer.CLIQUE_PACKAGE_INDEX_MIN_CORNER
          ],
          results[
              clique_package_indexer.CLIQUE_PACKAGE_INDEX_BLOCK_POINTS
          ],
      )
  
imports: from ctypes import c_double, c_size_t, POINTER
  from pyclustering.core.wrapper import ccore_library
  from pyclustering.core.pyclustering_package import pyclustering_package, package_builder, package_extractor
label_desc: Use image node_id 1 for calling a global function with example usage: clique(sample, intervals, threshold) and returns: results,  results,  results,  results,  results,  results