iMac Mid 2010 USB recovery
If you kept the firmware on your Mac up-to-date, you can use Internet MacOS Recovery. The mid 2010 iMac didn’t ship with that capability, but it was added in a later EFI update. If so, then just make sure it has a decent Internet connection and hold down Option-Command-R at startup.