class_docstr: Wrapper class for a Java companion object
class_docstr_tok: ["Wrapper","class","for","a","Java","companion","object"]
code: def _call_java(self, name: str, *args: Any) -> Any:
      m = getattr(self._java_obj, name)
      sc = SparkContext._active_spark_context
      assert sc is not None
  
      java_args = [_py2java(sc, arg) for arg in args]
      return _java2py(sc, m(*java_args))
  
imports: from abc import ABCMeta, abstractmethod
  from typing import Any, Generic, Optional, List, Type, TypeVar, TYPE_CHECKING
  from pyspark import since
  from pyspark import SparkContext
  from pyspark.sql import DataFrame
  from pyspark.ml import Estimator, Predictor, PredictionModel, Transformer, Model
  from pyspark.ml.base import _PredictorParams
  from pyspark.ml.param import Param, Params
  from pyspark.ml.util import _jvm
  from pyspark.ml.common import inherit_doc, _java2py, _py2java
label_desc: Use image node_id 4 for calling the JavaWrapper obj's underlying member method code with example usage: obj._call_java(name) and returns: _java2py