code: def toPyModel(model_ptr):
  	
  	if bool(model_ptr) == False:
  		raise ValueError("Null pointer")
  	m = model_ptr.contents
  	m.__createfrom__ = 'C'
  	return m
docs: toPyModel(model_ptr) -> svm_model
  
  	Convert a ctypes POINTER(svm_model) to a Python svm_model