code: def test_retrieval_config_random_type():
      config = yaml.safe_load(
          """
  model_type: llm
  base_model: facebook/opt-350m
  prompt:
      retrieval:
          type: random
      task: "Classify the sample input as either negative, neutral, or positive."
  input_features:
  -
      name: sample
      type: text
  output_features:
  -
      name: label
      type: text
  """
      )
  
      # should not fail because we auto-set k=1 if k=0 on __post_init__
      ModelConfig.from_dict(config)
  
imports: import contextlib
  from typing import Any, Dict, List, Optional
  import pytest
  import yaml
  from ludwig.constants import COMBINER, TYPE
  from ludwig.error import ConfigValidationError
  from ludwig.schema.model_types.base import ModelConfig
  from tests.integration_tests.utils import binary_feature, text_feature
label_desc: Use image node_id 14 for calling a global function with example usage: test_retrieval_config_random_type() without return types