In the case of an accessory, as defined in Section 32, in the commission of a public offense, the jurisdiction is in any competent court within the jurisdictional territory of which the offense of the accessory was committed, notwithstanding the principal offense was committed in another jurisdictional territory.