async def METHOD_NAME(self, ctx: commands.Context, counter: Counter) -> discord.File:
    task = functools.partial(
        self.create_chart, counter, f"Ban Mods for the last {sum(counter.values())} bans"
    )
    task = self.bot.loop.run_in_executor(None, task)
    try:
        banchart = await asyncio.wait_for(task, timeout=60)
    except asyncio.TimeoutError:
        return await ctx.send(
            "An error occurred while generating this image. Try again later."
        )
    return discord.File(banchart, "banchart.png")