(1) Evidence of compliance or non-compliance with a code of practice adopted or prescribed by regulation is admissible in proceedings as evidence of whether or not a duty or obligation under this Act has been complied with.
(2) Without limiting subsection (1), it is a defence to a prosecution for an offence against this Act if the conduct constituting the offence, or an element of the offence, was in accordance with a code of practice adopted or prescribed by regulation.