code: def get_settings_from_module(module=None):
      """Loads settings from a module, returns a dictionary."""
  
      context = {}
      if module is not None:
          context.update(
              (k, v)
              for k, v in inspect.getmembers(module)
              if k.isupper()
          )
      return context
  
file_path: pelican/pelican/settings.py
imports: import copy
  import importlib.util
  import inspect
  import locale
  import logging
  import os
  import re
  import sys
  from os.path import isabs
  from pathlib import Path
  from pelican.log import LimitFilter
label_desc: Use image node_id 3 for calling a global function with example usage: get_settings_from_module(module) and returns: context