code: def test_hyperparameter_tune_kwargs():
      assert ConfigBuilder().hyperparameter_tune_kwargs(
          "auto"
      ).build() == dict(hyperparameter_tune_kwargs="auto")
      assert ConfigBuilder().hyperparameter_tune_kwargs(
          "random"
      ).build() == dict(hyperparameter_tune_kwargs="random")
      assert ConfigBuilder().hyperparameter_tune_kwargs(
          {"props": 42}
      ).build() == dict(hyperparameter_tune_kwargs={"props": 42})
      with pytest.raises(
          AssertionError, match=r"unknown string must be one of .*"
      ):
          ConfigBuilder().hyperparameter_tune_kwargs("unknown").build()
      with pytest.raises(
          ValueError,
          match=r"hyperparameter_tune_kwargs must be either str: .* or dict",
      ):
          ConfigBuilder().hyperparameter_tune_kwargs(42).build()
  
imports: import numpy
  import pytest
  from sklearn.feature_extraction.text import CountVectorizer
  from autogluon.features import TextNgramFeatureGenerator
  from autogluon.tabular.configs.config_helper import ConfigBuilder, FeatureGeneratorBuilder
  from autogluon.tabular.models import KNNModel
label_desc: Use image node_id 18 for calling a global function with example usage: test_hyperparameter_tune_kwargs() without return types