code: def __del__(self):
      if self.__pointer:
          ccore = ccore_library.get()
          ccore.metric_destroy(self.__pointer)
  
file_path: pyclustering/pyclustering/core/metric_wrapper.py
imports: from pyclustering.core.wrapper import ccore_library
  from pyclustering.core.pyclustering_package import package_builder, package_extractor, pyclustering_package
  from ctypes import c_double, c_size_t, POINTER, c_void_p, CFUNCTYPE
  from pyclustering.utils.metric import type_metric
label_desc: Use image node_id 2 for calling the metric_wrapper obj's underlying member method code with example usage: obj.__del__() without return types