class_docstr: ConfigParser that partially mimics RawConfigParser but for toml files.
  
  See RawConfigParser for more info. Also, please note that not all
  RawConfigParser functionality is implemented, but only the subset that is
  currently used by pydocstyle.
class_docstr_tok: ["ConfigParser","that","partially","mimics","RawConfigParser","but","for","toml","files",".","See","RawConfigParser","for","more","info",".","Also",",","please","note","that","not","all","RawConfigParser","functionality","is","implemented",",","but","only","the","subset","that","is","currently","used","by","pydocstyle","."]
code: def _get_section(self, section, allow_none=False):
      try:
          current = reduce(
              operator.getitem,
              section.split("."),
              self._config["tool"],
          )
      except KeyError:
          current = None
  
      if isinstance(current, dict):
          return current
      elif allow_none:
          return None
      else:
          raise NoSectionError(section)
  
imports: import copy
  import itertools
  import operator
  import os
  import sys
  from collections import namedtuple
  from collections.abc import Set
  from configparser import NoOptionError, NoSectionError, RawConfigParser
  from functools import reduce
  from re import compile
  from ._version import __version__
  from .utils import log
  from .violations import ErrorRegistry, conventions
label_desc: Use image node_id 3 for calling the TomlParser obj's underlying member method code with example usage: obj._get_section(section, allow_none) and returns: current, None