code: def _get_weighted_blending_func(blend_type: str) -> Callable:
      WEIGHTED_BLENDING_FUNCS = {
          "select_with_weights": _stack_select_by_weights,
          "blend_with_weights": _stack_blend_by_weights,
      }
      blend_func = WEIGHTED_BLENDING_FUNCS.get(blend_type)
      if blend_func is None:
          raise ValueError(
              f"Unknown weighted blending type: {blend_type}."
              f"Expected one of: {WEIGHTED_BLENDING_FUNCS.keys()}"
          )
      return blend_func
  
file_path: satpy/satpy/multiscene/_blend_funcs.py
imports: from __future__ import annotations
  from datetime import datetime
  from typing import Callable, Iterable, Mapping, Optional, Sequence
  import pandas
  import xarray
  from dask import array
  from satpy.dataset import combine_metadata
label_desc: Use image node_id 3 for calling a global function with example usage: _get_weighted_blending_func(blend_type) and returns: blend_func