That is what you will get from hydrazinolysis of an ester. that's what they make in the reference provided. It is a common reaction so you should be able to find many more examples.
hydrazones (C=N) form when hydrazine reacts with aldehydes or ketones.
As seen in your reaction, first you should change the carboxylic acid into ester, after getting the ester you can mix the hydrazide with the ester in absolute ethanol.