def METHOD_NAME():
    default_config = {
        'defaults': [
            '--daemon', 'unix:{}'.format(openmediavault.getenv(
                'OMV_RRDCACHED_SOCKETFILE', '/run/rrdcached.sock')),
            '--imgformat', openmediavault.getenv(
                'OMV_COLLECTD_RRDTOOL_GRAPH_IMGFORMAT', 'PNG'),
            '--width', openmediavault.getenv(
                'OMV_COLLECTD_RRDTOOL_GRAPH_WIDTH', '400'),
            '--height', openmediavault.getenv(
                'OMV_COLLECTD_RRDTOOL_GRAPH_HEIGHT', '120'),
            '--alt-y-grid',
            '--interlaced',
            '--font', 'TITLE:9:.'
        ],
        'data_dir': os.path.join(
            openmediavault.getenv(
                'OMV_RRDCACHED_BASEDIR', '/var/lib/rrdcached/db'),
            openmediavault.getenv(
                'OMV_COLLECTD_HOSTNAME', 'localhost')),
        'image_dir': openmediavault.getenv(
            'OMV_COLLECTD_RRDTOOL_GRAPH_IMGDIR',
            '/var/lib/openmediavault/rrd'),
        'last_update': 'Last update: {}\\r'.format(
            time.ctime()).replace(':', '\:')
    }  # yapf: disable
    period_config = {
        'hour': {
            'start': '-1h',
            'title_by_period': ' - by hour'
        },
        'day': {
            'start': '-1d',
            'title_by_period': ' - by day'
        },
        'week': {
            'start': '-1w',
            'title_by_period': ' - by week'
        },
        'month': {
            'start': '-1m',
            'title_by_period': ' - by month'
        },
        'year': {
            'start': '-1y',
            'title_by_period': ' - by year'
        }
    }
    # Load the plugins.
    plugins = load_plugins()
    # Make sure the image directory exists.
    # lgtm[py/call/wrong-named-argument]
    os.makedirs(default_config['image_dir'], mode=0o755, exist_ok=True)
    # Create the RRD graphs.
    for period in ['hour', 'day', 'week', 'month', 'year']:
        config = default_config.copy()
        config.update(period_config[period])
        config['period'] = period
        # Get the command arguments to create the graph image.
        for plugin_name, plugin_inst in plugins.items():
            try:
                plugin_inst.create_graph(config)
            except Exception as e:
                openmediavault.log.error(
                    'Failed to build graph (plugin=%s, period=%s): %s',
                    plugin_name, period, str(e)
                )
    return 0