code: def create_instance(metric):
      mtype = metric.get_type()
      arguments = []
  
      if mtype == type_metric.MINKOWSKI:
          arguments = [metric.get_arguments().get("degree")]
  
      elif mtype == type_metric.GOWER:
          arguments = metric.get_arguments().get("max_range")
  
      return metric_wrapper(mtype, arguments, metric.get_function())
  
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 5 for calling the metric_wrapper obj's underlying member method code with example usage: obj.create_instance(metric) and returns: metric_wrapper