human
I wrote the below code

    def custom_getter(getter, *args, **kwargs):
        v = getter(*args, **kwargs)
        if kwargs.pop('trainable', True):
            v = tf.stop_gradient(v)
        return v
    return custom_getter_scope(custom_getter)

What's a good function header?

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

def freeze_variables():