code: def test_util_dot_section():
      cfg_string = """
      [nlp]
      lang = "en"
      pipeline = ["textcat"]
  
      [components]
  
      [components.textcat]
      factory = "textcat"
  
      [components.textcat.model]
      @architectures = "spacy.TextCatBOW.v3"
      exclusive_classes = true
      length = 262144
      ngram_size = 1
      no_output_layer = false
      """
      nlp_config = Config().from_str(cfg_string)
      en_nlp = util.load_model_from_config(nlp_config, auto_fill=True)
      default_config = Config().from_disk(DEFAULT_CONFIG_PATH)
      default_config["nlp"]["lang"] = "nl"
      nl_nlp = util.load_model_from_config(
          default_config, auto_fill=True
      )
      # Test that creation went OK
      assert isinstance(en_nlp, English)
      assert isinstance(nl_nlp, Dutch)
      assert nl_nlp.pipe_names == []
      assert en_nlp.pipe_names == ["textcat"]
      # not exclusive_classes
      assert (
          en_nlp.get_pipe("textcat").model.attrs["multi_label"] is False
      )
      # Test that default values got overwritten
      assert en_nlp.config["nlp"]["pipeline"] == ["textcat"]
      assert nl_nlp.config["nlp"]["pipeline"] == []  # default value []
      # Test proper functioning of 'dot_to_object'
      with pytest.raises(KeyError):
          dot_to_object(en_nlp.config, "nlp.pipeline.tagger")
      with pytest.raises(KeyError):
          dot_to_object(en_nlp.config, "nlp.unknownattribute")
      T = util.registry.resolve(
          nl_nlp.config["training"], schema=ConfigSchemaTraining
      )
      assert isinstance(
          dot_to_object({"training": T}, "training.optimizer"),
          Optimizer,
      )
  
imports: import ctypes
  import os
  from pathlib import Path
  import pytest
  from thinc.api import Config, ConfigValidationError, CupyOps, MPSOps, NumpyOps, Optimizer, get_current_ops, set_current_ops
  from thinc.compat import has_cupy_gpu, has_torch_mps_gpu
  from spacy import prefer_gpu, require_cpu, require_gpu, util
  from spacy.about import __version__
  from spacy.lang.en import English
  from spacy.lang.nl import Dutch
  from spacy.language import DEFAULT_CONFIG_PATH
  from spacy.ml._precomputable_affine import PrecomputableAffine, _backprop_precomputable_affine_padding
  from spacy.schemas import ConfigSchemaTraining, TokenPattern, TokenPatternSchema
  from spacy.training.batchers import minibatch_by_words
  from spacy.util import SimpleFrozenList, dot_to_object, find_available_port, import_file, to_ternary_int
  from .util import get_random_doc, make_tempdir
label_desc: Use image node_id 21 for calling a global function with example usage: test_util_dot_section() without return types