human
I wrote the below code

    if (concurrency < 1):
        click.echo('Error:    Minimum    concurrency    is    1', err=True)
        raise click.Abort()
    from threading import Thread
    from django.db import router as db_router
    from sentry.app import nodestore
    from sentry.db.deletion import BulkDeleteQuery
    from sentry import models
    if timed:
        import time
        from sentry.utils import metrics
        start_time = time.time()
    model_list = {m.lower() for m in model}
    def is_filtered(model):
        if ((router is not None) and (db_router.db_for_write(model) != router)):
            return True
        if (not model_list):
            return False
        return (model.__name__.lower() not in model_list)
    BULK_DELETES = ((models.GroupEmailThread, 'date', None), (models.GroupRuleStatus, 'date_added', None), (models.GroupTagValue, 'last_seen', None), (models.TagValue, 'last_seen', None), (models.EventTag, 'date_added', '-date_added'))
    GENERIC_DELETES = ((models.Event, 'datetime'), (models.Group, 'last_seen'))
    if (not silent):
        click.echo('Removing    expired    values    for    LostPasswordHash')
    if is_filtered(models.LostPasswordHash):
        if (not silent):
            click.echo('>>    Skipping    LostPasswordHash')
    else:
        models.LostPasswordHash.objects.filter(date_added__lte=(timezone.now() - timedelta(hours=48))).delete()
    for model in [models.ApiGrant, models.ApiToken]:
        if (not silent):
            click.echo('Removing    expired    values    for    {}'.format(model.__name__))
        if is_filtered(model):
            if (not silent):
                click.echo('>>    Skipping    {}'.format(model.__name__))
        else:
            model.objects.filter(expires_at__lt=timezone.now()).delete()
    project_id = None
    if project:
        click.echo('Bulk    NodeStore    deletion    not    available    for    project    selection', err=True)
        project_id = get_project(project)
        if (project_id is None):
            click.echo('Error:   ...

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

@click.command()
@click.option('--days', default=30, show_default=True, help='Numbers    of    days    to    truncate    on.')
@click.option('--project', help='Limit    truncation    to    only    entries    from    project.')
@click.option('--concurrency', type=int, default=1, show_default=True, help='The    number    of    concurrent    workers    to    run.')
@click.option('--silent', '-q', default=False, is_flag=True, help='Run    quietly.    No    output    on    success.')
@click.option('--model', '-m', multiple=True)
@click.option('--router', '-r', default=None, help='Database    router')
@click.option('--timed', '-t', default=False, is_flag=True, help='Send    the    duration    of    this    command    to    internal    metrics.')
@configuration
def cleanup(days, project, concurrency, silent, model, router, timed):