code: def test_invalid_mode(self):
      model = AutoML(
          explain_level=0, verbose=0, results_path=self.automl_dir
      )
      param = {"mode": "invalid_mode"}
      model.set_params(**param)
      with self.assertRaises(ValueError) as context:
          model.fit(iris.data, iris.target)
  
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 17 for calling the AutoMLTest obj's underlying member method code with example usage: obj.test_invalid_mode() without return types