Not sure I understand your question,
does (a),(b) and (c) protect against Y errors or do I have to implement something to protect Y errors?
what are (a), (b) and (c) here?
Using the type Y error correction circuit as a basis, design and implement a circuit to correct generic errors of a qubit.
Is this what your code is trying to achieve? Where are you getting the ``type Y error correction circuit'' from (e.g. a reference would be helpful)