code: def _parse_overrides_from_cmdline(cmdlineargs):
      """parse config overrides provided in command line
  
      Might exit(3) the entire process if value is not assigned"""
      # this expression is deliberately loose as gitconfig offers
      # quite some flexibility -- this is just meant to catch stupid
      # errors: we need a section, a variable, and a value at minimum
      # otherwise we break our own config parsing helpers
      # https://github.com/datalad/datalad/issues/3451
      assign_expr = re.compile(r"[^\s]+\.[^\s]+=[\S]+")
      unset_expr = re.compile(r":[^\s]+\.[^\s=]+")
      noassign = [
          o
          for o in cmdlineargs.cfg_overrides
          if not (assign_expr.match(o) or unset_expr.match(o))
      ]
      if noassign:
          lgr.error(
              "Configuration override without section/variable "
              "or unset marker or value assignment "
              "(must be '(:section.variable|section.variable=value)'): %s",
              noassign,
          )
          sys.exit(3)
      overrides = dict(
          [o[1:], None] if o.startswith(":") else o.split("=", 1)
          for o in cmdlineargs.cfg_overrides
      )
      return overrides
  
imports: import argparse
  import os
  import re
  import sys
  import gzip
  import textwrap
  from textwrap import wrap
  from datalad import __version__
  from datalad.support.exceptions import CapturedException
  from datalad.ui.utils import get_console_width
  from datalad.utils import is_interactive
  from platformdirs import AppDirs
  from logging import getLogger
label_desc: Use image node_id 5 for calling a global function with example usage: _parse_overrides_from_cmdline(cmdlineargs) and returns: overrides