(1) The Secretary of State must prepare a code of practice containing guidance about -
(a) the exercise of the powers conferred by sections 43, 43A and 43C
(b) the exercise of the powers to give an authorisation under section 47A(2) or (3),
(c) the exercise of the powers conferred by such an authorisation and section 47A(6), and
(d) such other matters in connection with the exercise of any of the powers mentioned in paragraphs (a) to (c) as the Secretary of State considers appropriate.
(2) Such a code may make different provision for different purposes.
(3) In the course of preparing such a code, the Secretary of State must consult the Lord Advocate and such other persons as the Secretary of State considers appropriate.