code: def get_configuration_space(
      datamanager: AbstractDataManager,
      include: Optional[Dict[str, List[str]]] = None,
      exclude: Optional[Dict[str, List[str]]] = None,
      random_state: Optional[Union[int, np.random.RandomState]] = None,
  ) -> ConfigurationSpace:
      """Get the configuration of a pipeline given some dataset info
  
      Parameters
      ----------
      datamanager: AbstractDataManager
          AbstractDataManager object storing all important information about the dataset
  
      include: Optional[Dict[str, List[str]]] = None
          A dictionary of what components to include for each pipeline step
  
      exclude: Optional[Dict[str, List[str]]] = None
          A dictionary of what components to exclude for each pipeline step
  
      random_state: Optional[Union[int, np.random.Randomstate]] = None
          The random state to use for seeding the ConfigSpace
  
      Returns
      -------
      ConfigurationSpace
          The configuration space for the pipeline
      """
      if datamanager.info["task"] in REGRESSION_TASKS:
          return _get_regression_configuration_space(
              datamanager, include, exclude, random_state
          )
      else:
          return _get_classification_configuration_space(
              datamanager, include, exclude, random_state
          )
  
file_path: auto-sklearn/autosklearn/util/pipeline.py
imports: from typing import Dict, List, Optional, Union
  import numpy
  from ConfigSpace.configuration_space import ConfigurationSpace
  from autosklearn.constants import BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION, MULTILABEL_CLASSIFICATION, MULTIOUTPUT_REGRESSION, REGRESSION_TASKS
  from autosklearn.data.abstract_data_manager import AbstractDataManager
  from autosklearn.pipeline.classification import SimpleClassificationPipeline
  from autosklearn.pipeline.regression import SimpleRegressionPipeline
label_desc: Use image node_id 1 for calling a global function with example usage: get_configuration_space(datamanager, include, exclude, random_state) and returns: _get_regression_configuration_space, _get_classification_configuration_space