MZ Is it possible to show animation on custom scenes, using Sprite_Animation class?

I was trying to display animations on Sprites. Is there any way to display RPG maker animations on a Sprite on a custom Scene and without making an Actor object?
I tried making a Sprite_Animation Instance inside a Sprite Function, it didn't work. And it didn't show any errors.

var animation = $dataAnimations[22];
spranim = new Sprite_Animation();
spranim.setup(this, animation, false, 22);

Is it possible to display RPG Maker animations having target as a Sprite or Anywhere on Screen Coordinates or even with update function?

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-show-animation-on-custom-scenes-using-sprite_animation-class.142872/