human
I wrote the below code

    def sampled_decorator(fn):
        @functools.wraps(fn)
        def sampled_fn(*a, **kw):
            if (random.random() > g.live_config[live_config_var]):
                return None
            else:
                return fn(*a, **kw)
        return sampled_fn
    return sampled_decorator

What's a good function header?

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

def sampled(live_config_var):