def METHOD_NAME(interface, send_values_func):
    """
    Creates and registers the collectd python module so that plugins can import
    it properly.  This should only be called once per python interpreter.
    """
    assert "collectd" not in sys.modules, "collectd module should only be created once"
    mod = types.ModuleType("collectd")
    mod.register_config = interface.register_config
    mod.register_init = interface.register_init
    mod.register_read = interface.register_read
    mod.register_shutdown = interface.register_shutdown
    mod.info = logger.info
    mod.error = logger.error
    mod.warning = logger.warning
    mod.notice = logger.warning
    mod.info = logger.info
    mod.debug = logger.debug
    Values.set_dispatcher_func(send_values_func)
    mod.Values = Values
    sys.modules["collectd"] = mod