code: def start_profiling():
      """
      Helper function to start the profiling process and return the profiler (to close it later).
  
      :return: a started profiler.
      :rtype: cProfile.Profile
  
      Start and stop the profiler with:
  
      >>> profiler = start_profiling()
      >>> # Do something you want to profile
      >>> end_profiling(profiler, "cumulative", "out.txt")
      """
      profiler = cProfile.Profile()
      profiler.enable()
      return profiler
  
file_path: tsfresh/tsfresh/utilities/profiling.py
imports: import cProfile
  import io
  import logging
  import pstats
  from tsfresh import defaults
label_desc: Use image node_id 1 for calling a global function with example usage: start_profiling() and returns: profiler