code: def getDataFrame(self, spark, jdf):
      if LooseVersion(self.spark_version()) >= LooseVersion("3.3.0"):
          return DataFrame(jdf, spark._getActiveSessionOrCreate())
      else:
          return DataFrame(jdf, spark._wrapped)
  
file_path: spark-nlp/python/sparknlp/internal/extended_java_wrapper.py
imports: from pyspark import SparkContext
  from pyspark.ml.wrapper import JavaWrapper
  from pyspark.sql import DataFrame
  from distutils.version import LooseVersion
label_desc: Use image node_id 9 for calling the ExtendedJavaWrapper obj's underlying member method code with example usage: obj.getDataFrame(spark, jdf) and returns: DataFrame, DataFrame