class_docstr: Test the command line interface to tsfresh. This does not test the tsfresh functionality (this is tested elsewhere),
  but mocks the extract_features functionality by just outputting the same df as going in into the function.
class_docstr_tok: ["Test","the","command","line","interface","to","tsfresh",".","This","does","not","test","the","tsfresh","functionality","(","this","is","tested","elsewhere",")",",","but","mocks","the","extract_features","functionality","by","just","outputting","the","same","df","as","going","in","into","the","function","."]
code: def setUp(self):
      # Create a temporary directory
      self.test_dir = tempfile.mkdtemp()
      # Change into the tmp dir
      self.curr_dir = os.getcwd()
      os.chdir(self.test_dir)
  
      def extract_features_mock(df, **kwargs):
          # just mirror the input
          return df
  
      # Patcher object to be disabled in tearDown
      self.patcher = patch(
          "tsfresh.scripts.run_tsfresh.extract_features",
          side_effect=extract_features_mock,
      )
      # Mocked extract function
      self.mocked_extract_function = self.patcher.start()
  
file_path: tsfresh/tests/units/scripts/test_run_tsfresh.py
imports: import os
  import shutil
  import tempfile
  from unittest import TestCase
  from mock import patch
  from tsfresh.scripts import run_tsfresh
label_desc: Use image node_id 1 for calling the RunTSFreshTestCase obj's underlying member method code with example usage: obj.setUp() and returns: df