The Secretary of the Interior is authorized and directed to recommend to the Congress, on or before July 1, 1968, a model code to govern the administration of justice by courts of Indian offenses on Indian reservations. Such code shall include provisions which will (1) assure that any individual being tried for an offense by a court of Indian offenses shall have the same rights, privileges, and immunities under the United States Constitution as would be guaranteed any citizen of the United States being tried in a Federal court for any similar offense, (2) assure that any individual being tried for an offense by a court of Indian offenses will be advised and made aware of his rights under the United States Constitution, and under any tribal constitution applicable to such individual, (3) establish proper qualifications for the office of judge of the court of Indian offenses, and (4) provide for the establishing of educational classes for the training of judges of courts of Indian offenses. In carrying out the provisions of this subchapter, the Secretary of the Interior shall consult with the Indians, Indian tribes, and interested agencies of the United States.