class_docstr: Mixin for classes which can load saved models using its Scala
  implementation.
  
  .. versionadded:: 1.3.0
docstr: Load a Java model from the given path.
docstr_tok: ["Load","a","Java","model","from","the","given","path","."]
code: def _load_java(cls, sc: SparkContext, path: str) -> "JavaObject":
      """
      Load a Java model from the given path.
      """
      java_class = cls._java_loader_class()
      java_obj: "JavaObject" = reduce(
          getattr, java_class.split("."), sc._jvm
      )
      return java_obj.load(sc._jsc.sc(), path)
  
imports: import sys
  from functools import reduce
  import numpy
  from pyspark import SparkContext, since
  from pyspark.mllib.common import callMLlibFunc, inherit_doc
  from pyspark.mllib.linalg import Vectors, SparseVector, _convert_to_vector
  from pyspark.sql import DataFrame
  from typing import Generic, Iterable, List, Optional, Tuple, Type, TypeVar, cast, TYPE_CHECKING
  from pyspark.context import SparkContext
  from pyspark.mllib.linalg import Vector
  from pyspark.rdd import RDD
  from pyspark.sql.dataframe import DataFrame
label_desc: Use image node_id 2 for calling the JavaLoader obj's underlying member method code with example usage: obj._load_java(cls, sc, path) and returns: java_obj