human
I wrote the below code

    def decorator(f):
        f._periodic_task = True
        f._ticks_between_runs = kwargs.pop('ticks_between_runs', 0)
        return f
    if kwargs:
        return decorator
    else:
        return decorator(args[0])

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

def periodic_task(*args, **kwargs):