In Japan anime is any cartoon.
In most of the rest of the world, anime is cartoons from Japan (what this means can be somewhat subjective, though, as many productions involve people from multiple countries).
Calling things inspired by anime "an anime" is false, but not offensively so...