class_docstr: Wrapper for the model in JVM
class_docstr_tok: ["Wrapper","for","the","model","in","JVM"]
code: def __del__(self) -> None:
      assert self._sc._gateway is not None
      self._sc._gateway.detach(self._java_model)
  
file_path: spark/python/pyspark/mllib/common.py
imports: from typing import Any, Callable, TYPE_CHECKING
  import py4j.protocol
  from py4j.protocol import Py4JJavaError
  from py4j.java_gateway import JavaObject
  from py4j.java_collections import JavaArray, JavaList
  import pyspark.context
  from pyspark import RDD, SparkContext
  from pyspark.serializers import CPickleSerializer, AutoBatchedSerializer
  from pyspark.sql import DataFrame, SparkSession
label_desc: Use image node_id 2 for calling the JavaModelWrapper obj's underlying member method code with example usage: obj.__del__() without return types