(b)is acting under colour of such licence, pass, permit or certificate, shall forthwith produce such licence, pass, permit or certificate upon demand by any magistrate or any police officer of a rank not below that of an officer-in-charge of a police station.