code: def get_default_config(version: int) -> dict[str, t.Any]:
      config = load_config_file(
          os.path.join(
              os.path.dirname(__file__),
              f"v{version}",
              "default_configuration.yaml",
          )
      )
      mod = import_configuration_spec(version)
      assert hasattr(mod, "SCHEMA"), (
          "version %d does not have a validation schema" % version
      )
      try:
          mod.SCHEMA.validate(config)
      except s.SchemaError as e:
          raise BentoMLConfigException(
              "Default configuration for version %d does not conform to given schema:\n%s"
              % (version, e)
          ) from None
      return config
  
imports: from __future__ import annotations
  import ipaddress
  import logging
  import os
  import re
  import typing
  from functools import singledispatch
  from typing import TYPE_CHECKING
  import schema
  import yaml
  from ...exceptions import BentoMLConfigException
  from ..utils import LazyLoader
label_desc: Use image node_id 7 for calling a global function with example usage: get_default_config(version) and returns: config