code: def get_config_hash(config: Configuration, chars: int = 6) -> str:
      """Returns a hash of the configuration."""
      return hashlib.sha1(str(config).encode("utf-8")).hexdigest()[
          :chars
      ]
  
file_path: SMAC3/smac/utils/configspace.py
imports: from __future__ import annotations
  import hashlib
  import logging
  from functools import partial
  import numpy
  from ConfigSpace import Configuration, ConfigurationSpace
  from ConfigSpace.hyperparameters import BetaFloatHyperparameter, BetaIntegerHyperparameter, CategoricalHyperparameter, Constant, NormalFloatHyperparameter, NormalIntegerHyperparameter, OrdinalHyperparameter, UniformFloatHyperparameter, UniformIntegerHyperparameter
  from ConfigSpace.util import get_one_exchange_neighbourhood
label_desc: Use image node_id 4 for calling a global function with example usage: get_config_hash(config, chars) and returns: hashlib