code: def get_settings_from_file(path):
      """Loads settings from a file path, returning a dict."""
  
      name, ext = os.path.splitext(os.path.basename(path))
      module = load_source(name, path)
      return get_settings_from_module(module)
  
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 4 for calling a global function with example usage: get_settings_from_file(path) and returns: get_settings_from_module