human
I wrote the below code

    def k_filter(v, k, c):
        return (c[v] == k)
    return _core_subgraph(G, k_filter, k, core_number)

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

def k_shell(G, k=None, core_number=None):