human
I wrote the below code

    if (h5py is None):
        raise ImportError('`save_model`    requires    h5py.')
    def get_json_type(obj):
        'Serialize    any    object    to    a    JSON-serializable    structure.\n\n                                #    Arguments\n                                                obj:    the    object    to    serialize\n\n                                #    Returns\n                                                JSON-serializable    structure    representing    `obj`.\n\n                                #    Raises\n                                                TypeError:    if    `obj`    cannot    be    serialized.\n                                '
        if hasattr(obj, 'get_config'):
            return {'class_name': obj.__class__.__name__, 'config': obj.get_config()}
        if (type(obj).__module__ == np.__name__):
            if isinstance(obj, np.ndarray):
                return {'type': type(obj), 'value': obj.tolist()}
            else:
                return obj.item()
        if callable(obj):
            return obj.__name__
        if (type(obj).__name__ == type.__name__):
            return obj.__name__
        raise TypeError('Not    JSON    Serializable:', obj)
    from . import __version__ as keras_version
    if ((not overwrite) and os.path.isfile(filepath)):
        proceed = ask_to_proceed_with_overwrite(filepath)
        if (not proceed):
            return
    with h5py.File(filepath, mode='w') as f:
        f.attrs['keras_version'] = str(keras_version).encode('utf8')
        f.attrs['backend'] = K.backend().encode('utf8')
        f.attrs['model_config'] = json.dumps({'class_name': model.__class__.__name__, 'config': model.get_config()}, default=get_json_type).encode('utf8')
        model_weights_group = f.create_group('model_weights')
        if legacy_models.needs_legacy_support(model):
            model_layers = legacy_models.legacy_sequential_layers(model)
        else:
            model_layers = model.layers
       ...

What's a good function header?

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

def save_model(model, filepath, overwrite=True, include_optimizer=True):