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 call_main_function(self, input_csv_string=None, arguments=""):
      # Helper function to call "main" from the script after creating the input file out of the input string.
      input_file_name = "temporary_csv_file.csv"
  
      if input_csv_string:
          with open(
              os.path.join(self.test_dir, input_file_name), "w"
          ) as f:
              f.write(input_csv_string)
  
      output_file_name = "temporary_output_csv_file.csv"
      arguments_with_filenames = "{input_file_name} {arguments} --output-file-name {output_file_name}".format(
          input_file_name=input_file_name,
          arguments=arguments,
          output_file_name=output_file_name,
      )
  
      run_tsfresh.main(arguments_with_filenames.split())
  
      if os.path.exists(os.path.join(self.test_dir, output_file_name)):
          with open(
              os.path.join(self.test_dir, output_file_name), "r"
          ) as f:
              return f.read()
      else:
          return None
  
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 3 for calling the RunTSFreshTestCase obj's underlying member method code with example usage: obj.call_main_function(input_csv_string, arguments) and returns: None, f