docstr: Directory exists and is not empty,
  there is no params.json file in it, dont use it, raise exception
docstr_tok: ["Directory","exists","and","is","not","empty",",","there","is","no","params.json","file","in","it",",","dont","use","it",",","raise","exception"]
code: def test_not_empty_directory(self):
      """
      Directory exists and is not empty,
      there is no params.json file in it, dont use it, raise exception
      """
      # Assert directory does not exist
      self.assertTrue(not os.path.exists(self.automl_dir))
      # Create directory
      os.mkdir(self.automl_dir)
      # Write some content to directory
      open(os.path.join(self.automl_dir, "test.file"), "w").close()
      # Assert directory exists
      self.assertTrue(os.path.exists(self.automl_dir))
      # Generate data
      X, y = datasets.make_classification(n_samples=30)
      # Assert than an Exception is raised
      with self.assertRaises(AutoMLException) as context:
          a = AutoML(results_path=self.automl_dir)
          a.fit(
              X, y
          )  # AutoML only validates constructor params on `fit()` call
  
      self.assertTrue("not empty" in str(context.exception))
  
imports: import os
  import unittest
  import tempfile
  import json
  import numpy
  import pandas
  import shutil
  from sklearn import datasets
  from sklearn.pipeline import make_pipeline
  from sklearn.decomposition import PCA
  from supervised import AutoML
  from supervised.exceptions import AutoMLException
label_desc: Use image node_id 5 for calling the AutoMLTest obj's underlying member method code with example usage: obj.test_not_empty_directory() without return types