def METHOD_NAME():
    """Load setuptools plugins via entry_points.
    Based on https://packaging.python.org/guides/creating-and-discovering-plugins/#using-package-metadata.
    """
    discovered_plugins = entry_points(group="pyresample.resamplers")
    for entry_point in discovered_plugins:
        try:
            loaded_resampler = entry_point.load()
        except ImportError:
            warnings.warn(f"Unable to load resampler from plugin: {entry_point.name}", stacklevel=3)
        else:
            register_resampler(entry_point.name, loaded_resampler)