code: def leftover_parameters_to_categorical_distributions(
      tune_grid: dict, tune_distributions: dict
  ) -> None:
      """If a key is present in tune_grid but not in tune_distribution,
      then this function will add those values as a CategoricalDistribution
      to tune_distribution (inplace operation).
  
      This is mainly a helper function that prevents the need to redefine some
      hyperparameters in tune_distribution again if they have already been
      defined in tune_grid.
  
      Parameters
      ----------
      tune_grid : dict
          Dictionary of parameters and values (fixed)
      tune_distributions : dict
          Dictionary of PyCaret Distributions
      """
      for k, v in tune_grid.items():
          if k not in tune_distributions:
              tune_distributions[k] = CategoricalDistribution(v)
  
file_path: pycaret/pycaret/containers/models/base_model.py
imports: from typing import Any, Dict, List, Optional
  from pycaret.containers.base_container import BaseContainer
  from pycaret.internal.distributions import CategoricalDistribution
  from pycaret.internal.pycaret_experiment.pycaret_experiment import _PyCaretExperiment
  from pycaret.utils.generic import get_allowed_engines, get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: leftover_parameters_to_categorical_distributions(tune_grid, tune_distributions) without return types