human
I wrote the below code

    if (skip_fn is not None):
        def _skip_fn(fkc):
            for fk in fkc.elements:
                if skip_fn(fk):
                    return True
            else:
                return None
    else:
        _skip_fn = None
    return [t for (t, fkcs) in sort_tables_and_constraints(tables, filter_fn=_skip_fn, extra_dependencies=extra_dependencies) if (t is not None)]

What's a good function header?

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

def sort_tables(tables, skip_fn=None, extra_dependencies=None):