pub(crate) fn from_function( _: Function, has_body: bool, header: FnHeader, renderer: &JsonRenderer<'_>, ) -> Function