code: def readDataset(self, spark, path, isPaddedToken=True):
      # ToDo Replace with std pyspark
      """Reads the dataset from an external resource.
  
      Parameters
      ----------
      spark : :class:`pyspark.sql.SparkSession`
          Initiated Spark Session with Spark NLP
      path : str
          Path to the resource
      isPaddedToken : str, optional
          Whether tokens are padded, by default True
  
      Returns
      -------
      :class:`pyspark.sql.DataFrame`
          Spark Dataframe with the data
      """
      jSession = spark._jsparkSession
  
      jdf = self._java_obj.readDataset(jSession, path, isPaddedToken)
      dataframe = self.getDataFrame(spark, jdf)
      return dataframe
  
imports: from sparknlp.internal import ExtendedJavaWrapper
label_desc: Use image node_id 2 for calling the PubTator obj's underlying member method code with example usage: obj.readDataset(spark, path, isPaddedToken) and returns: dataframe