async def send_resource_use_plot(client, channel: str, plot_kwargs: dict, title: Optional[str]=None):
    'Sends a resource usage plot to a given channel.'
    if (title is None):
        title = f'Resource usage plot generated at {string_time()}'
    else:
        title = (title + f' (plot generated at {string_time()})')
    logging.info('Generating a resource usage plot')
    logging.debug(f'plot kwargs: {plot_kwargs}')
    location_plot = (await plot_resource_use(**plot_kwargs))
    logging.info(f'Sending to Slack in channel {channel}')
    (await _send_file(client, channel, location_plot, title))
Sends a resource usage plot to a given channel.
async def send_resource_use_plot(client, channel: str, plot_kwargs: dict, title: Optional[str]=None):
    
    if (title is None):
        title = f'Resource usage plot generated at {string_time()}'
    else:
        title = (title + f' (plot generated at {string_time()})')
    logging.info('Generating a resource usage plot')
    logging.debug(f'plot kwargs: {plot_kwargs}')
    location_plot = (await plot_resource_use(**plot_kwargs))
    logging.info(f'Sending to Slack in channel {channel}')
    (await _send_file(client, channel, location_plot, title))