code: def test_topic_extraction(input_data_path, output_folder_path):
      tar_corpus_path = os.path.join(input_data_path, "target_corpus")
      ref_corpus_path = os.path.join(
          input_data_path, "reference_corpus"
      )
      topic_ex_main(
          tar_corpus_path,
          ref_corpus_path,
          single_thread=True,
          no_train=False,
          url=False,
      )
      assert os.path.isfile(path.join(ta_path, "reference_corpus.csv"))
      assert os.path.isfile(path.join(ta_path, "target_corpus.csv"))
      assert os.path.isfile(
          os.path.join(output_folder_path, "W2V_Models/model.bin")
      )
  
file_path: nlp-architect/solutions/trend_analysis/test_trend_analysis.py
imports: import os
  from os import path
  import pytest
  from nlp_architect import LIBRARY_OUT
  from nlp_architect.utils.text import try_to_load_spacy
  from .topic_extraction import main
  from .trend_analysis import analyze
label_desc: Use image node_id 7 for calling a global function with example usage: test_topic_extraction(input_data_path, output_folder_path) without return types