Test code is just code. If you can write test code you can write production code. If you can write production code you can write tests.
If your concern is that devs don't have the right mindset for testing, you can have them collaborate with a QA specialist to define the test cases and review the test implementation.