code: def test_param_dataset_compression_args(
      dataset_compression: Union[bool, Dict],
      expected: Optional[Dict],
  ) -> None:
      """
      Parameters
      ----------
      dataset_compression: Union[bool, Dict]
          The dataset_compression arg used
  
      expected: Optional[Dict]
          The expected internal variable setting
  
      Expects
      -------
      * Setting the compression arg should result in the expected value
          * False -> None, No dataset compression
          * True -> default, The default settings
          * dict -> default updated, The default should be updated with the args used
      """
      auto = AutoML(
          time_left_for_this_task=30,
          per_run_time_limit=5,
          dataset_compression=dataset_compression,
      )
      assert auto._dataset_compression == expected
  
file_path: auto-sklearn/test/test_automl/test_construction.py
imports: from typing import Any, Dict, Optional, Union
  from autosklearn.automl import AutoML
  from autosklearn.util.dask import LocalDask
  from autosklearn.util.data import default_dataset_compression_arg
  from autosklearn.util.single_thread_client import SingleThreadedClient
  import pytest
  from pytest_cases import parametrize
label_desc: Use image node_id 2 for calling a global function with example usage: test_param_dataset_compression_args(dataset_compression, expected) without return types