Here you go
tk2dSpriteAnimation library = Resources.Load("TheSpriteAnimation", typeof(tk2dSpriteAnimation)) as tk2dSpriteAnimation;
GameObject go = new GameObject("NewSprite");
go.AddComponent<tk2dSprite>();
tk2dSpriteAnimator animator = go.AddComponent<tk2dSpriteAnimator>();
animator.Library = library;
animator.Play("ClipName");