How to create an UAnimationAsset and fill data with c++

skeletalMeshComponent->SetAnimationMode(EAnimationMode::AnimationBlueprint);
skeletalMeshComponent->SetAnimation(animation);

animation is needed, but how to create it and set parameters?