Look at the shoe. If it says Andy then find Andy and give the toy back. If not it's your toy.
It would think it was a space ranger unless it had realised it was a toy then it would always try find its way back to me I guess. 乂ᵒ◡^乂
OP asks the real questions
...*looks at original buzz and woody toys in closet