class_docstr: This class keeps track of different profilers on a per
  stage/UDF basis. Also this is used to create new profilers for
  the different stages/UDFs.
class_docstr_tok: ["This","class","keeps","track","of","different","profilers","on","a","per","stage\/UDF","basis",".","Also","this","is","used","to","create","new","profilers","for","the","different","stages\/UDFs","."]
docstr: Dump the profile stats into directory `path`
docstr_tok: ["Dump","the","profile","stats","into","directory","`","path","`"]
code: def dump_profiles(self, path: str) -> None:
      """Dump the profile stats into directory `path`"""
      for id, profiler, _ in self.profilers:
          profiler.dump(id, path)
      self.profilers = []
  
imports: from typing import Any, Callable, Dict, List, Optional, Tuple, Type, TYPE_CHECKING, Union, cast
  import cProfile
  import inspect
  import pstats
  import linecache
  import os
  import atexit
  import sys
  import warnings
  from pyspark.accumulators import AccumulatorParam
  from pyspark.errors import PySparkRuntimeError
label_desc: Use image node_id 6 for calling the ProfilerCollector obj's underlying member method code with example usage: obj.dump_profiles(path) without return types