This is a Bosko cartoon from the MGM animation studio. There will be spoilers ahead:
After Harman and Ising parted company with Warner Brothers, they took the character of Bosko with them and modified him, making him a little black boy. They made a number of Bosko cartoons for MGM. Several of these were extremely formulaic, to the point that they were essentially the same cartoon with minor plot variations.
Little Ol' Bosko in Bagdad is one of these. Bosko is given cookies by his mom to take to Grandma's. Along the way he meets frogs dressed as (fill in the blank) and they want some of Grandma's cookies. Bosko refuses, there are musical numbers throughout, Bosko is threatened, manages to escape and goes on to Grandma's, the end.
In this one, the details are out of the Arabian Nights, with a genie, a sultan, a bevy of frogs dressed as dancing girls and the like. Various frogs are caricatures of Louis Armstrong, Fats Waller, Bill Robinson, Stepin Fechit and possibly others I've missed. Movie audiences would have gotten the references and catch phrases in the 1930s.
The animation is good, the color is great and the musical stuff is excellent. The shorts are seriously dated and not very funny, but worth watching once.