class_docstr: Abstraction for Decision Tree models.
  
  .. versionadded:: 1.5.0
class_docstr_tok: ["Abstraction","for","Decision","Tree","models",".","..","versionadded",":",":","1.5.0"]
docstr: Return number of nodes of the decision tree.
code: def numNodes(self) -> int:
      """Return number of nodes of the decision tree."""
      return self._call_java("numNodes")
  
imports: from typing import List, Sequence, TypeVar, TYPE_CHECKING
  from pyspark import since
  from pyspark.ml.linalg import Vector
  from pyspark.ml.param import Params
  from pyspark.ml.param.shared import HasCheckpointInterval, HasSeed, HasWeightCol, Param, TypeConverters, HasMaxIter, HasStepSize, HasValidationIndicatorCol
  from pyspark.ml.wrapper import JavaPredictionModel
  from pyspark.ml.common import inherit_doc
label_desc: Use image node_id 1 for calling the _DecisionTreeModel obj's underlying member method code with example usage: obj.numNodes() and returns: self