Will this optical drive work with my MacBook 13in mid 2010
Unless I misunderstood your question, this is not actually a replacement Optical Drive. What you're linking to is a caddy that allows you to add a second HDD/SSD to your 13" MacBook by using the space your original Optical Drive was in.

Based on your question, you need something like this.

Anyone looking to replace one in a MacBook Pro (13" mid-2010) would need something like this.