code: def test_single_job_and_no_dask_client_sets_correct_multiprocessing_context() -> (
      None
  ):
      """
      Expects
      -------
      * With n_jobs set to 1 and no dask client, we default to a SingleThreadedClient
      with a "fork" _multiprocessing_context
      """
      n_jobs = 1
      dask_client = None
  
      automl = AutoML(
          time_left_for_this_task=30,
          per_run_time_limit=5,
          n_jobs=n_jobs,
          dask_client=dask_client,
      )
  
      assert automl._multiprocessing_context == "fork"
      assert automl._n_jobs == 1
      assert isinstance(automl._dask, LocalDask)
  
      with automl._dask as client:
          assert isinstance(client, SingleThreadedClient)
  
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 3 for calling a global function with example usage: test_single_job_and_no_dask_client_sets_correct_multiprocessing_context() without return types