code: def test_minmax_validation():
      api = wandb.apis.InternalApi()
      sweep_config = {
          "name": "My Sweep",
          "method": "random",
          "parameters": {"parameter1": {"min": 0, "max": 1}},
      }
  
      filled = api.api._validate_config_and_fill_distribution(
          sweep_config
      )
      assert "distribution" in filled["parameters"]["parameter1"]
      assert (
          "int_uniform"
          == filled["parameters"]["parameter1"]["distribution"]
      )
  
      sweep_config = {
          "name": "My Sweep",
          "method": "random",
          "parameters": {"parameter1": {"min": 0.0, "max": 1.0}},
      }
  
      filled = api.api._validate_config_and_fill_distribution(
          sweep_config
      )
      assert "distribution" in filled["parameters"]["parameter1"]
      assert (
          "uniform"
          == filled["parameters"]["parameter1"]["distribution"]
      )
  
      sweep_config = {
          "name": "My Sweep",
          "method": "random",
          "parameters": {"parameter1": {"min": 0.0, "max": 1}},
      }
  
      with pytest.raises(ValueError):
          api.api._validate_config_and_fill_distribution(sweep_config)
  
file_path: wandb/tests/pytest_tests/system_tests/test_sweep/test_wandb_sweep.py
imports: from typing import Any, Dict, List
  import pytest
  import wandb
label_desc: Use image node_id 4 for calling a global function with example usage: test_minmax_validation() without return types