code: def validate_builder(algo, builder):
      """Validate that a model builder seems to have a well-formed parameters list."""
      assert "parameters" in builder, (
          "FAIL: Failed to find parameters list in builder: "
          + algo
          + " ("
          + repr(builder)
          + ")"
      )
      assert isinstance(builder["parameters"], list), (
          "FAIL: 'parameters' element is not a list in builder: "
          + algo
          + " ("
          + repr(builder)
          + ")"
      )
      parameters = builder["parameters"]
      assert len(parameters) > 0, (
          "FAIL: parameters list is empty: "
          + algo
          + " ("
          + repr(builder)
          + ")"
      )
      for parameter in parameters:
          assertKeysExist(
              parameter,
              "",
              [
                  "name",
                  "help",
                  "required",
                  "type",
                  "default_value",
                  "actual_value",
                  "input_value",
                  "level",
                  "values",
              ],
          )
  
      assert "can_build" in builder, (
          "FAIL: Failed to find can_build list in builder: "
          + algo
          + " ("
          + repr(builder)
          + ")"
      )
      assert isinstance(builder["can_build"], list), (
          "FAIL: 'can_build' element is not a list in builder: "
          + algo
          + " ("
          + repr(builder)
          + ")"
      )
      assert len(builder["can_build"]) > 0, (
          "FAIL: 'can_build' list is empty in builder: "
          + algo
          + " ("
          + repr(builder)
          + ")"
      )
  
imports: import sys, os, time, json, datetime, errno, stat, getpass, requests, pprint
  import h2o
label_desc: Use image node_id 17 for calling a global function with example usage: validate_builder(algo, builder) without return types