Certificate of Occupancy responsibility

I was wondering if anyone had insight on what party is responsible for obtaining the certificate of occupancy for a project.
One of the PjM videos said the architect should require that the contractor obtain a CO before the architect issues a certificate of substantial completion but on a recent practice exam it said the owner is responsible.
Any help is greatly appreciated, thanks!