code: def _update_from_env(store):
      overrides = {}
      dct = {}
      for k in os.environ:
          if k == "DATALAD_CONFIG_OVERRIDES_JSON":
              try:
                  overrides = json.loads(os.environ[k])
              except json.decoder.JSONDecodeError as exc:
                  lgr.warning(
                      "Failed to load DATALAD_CONFIG_OVERRIDES_JSON: %s",
                      exc,
                  )
          elif k.startswith("DATALAD_"):
              dct[
                  k.replace("__", "-").replace("_", ".").lower()
              ] = os.environ[k]
      if overrides:
          store.update(overrides)
      store.update(dct)
  
imports: import json
  import logging
  import os
  import re
  import threading
  import warnings
  from collections import namedtuple
  from fasteners import InterProcessLock
  from functools import lru_cache, wraps
  from pathlib import Path
  import datalad
  from datalad.consts import DATASET_CONFIG_FILE
  from datalad.runner import CommandError, GitRunner, KillOutput, StdOutErrCapture
  from datalad.utils import getpwd, on_windows
label_desc: Use image node_id 6 for calling a global function with example usage: _update_from_env(store) without return types