code: def test_holdout_frac():
      assert ConfigBuilder().holdout_frac(0).build() == dict(
          holdout_frac=0
      )
      assert ConfigBuilder().holdout_frac(1).build() == dict(
          holdout_frac=1
      )
      with pytest.raises(
          AssertionError, match=r"holdout_frac must be between 0 and 1"
      ):
          ConfigBuilder().holdout_frac(-0.1).build()
      with pytest.raises(
          AssertionError, match=r"holdout_frac must be between 0 and 1"
      ):
          ConfigBuilder().holdout_frac(1.1).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 17 for calling a global function with example usage: test_holdout_frac() without return types