When complaint is made, on oath, to any magistrate authorized to issue warrants in criminal cases, that the complainant believes that any provision of law relating to, or in any way affecting, dumb animals or birds, is being, or is about to be violated in any particular building or place, the magistrate must issue and deliver immediately a warrant directed to any sheriff, police or peace officer or officer of any incorporated association qualified as provided by law, authorizing him to enter and search that building or place, and to arrest any person there present violating, or attempting to violate, any law relating to, or in any way affecting, dumb animals or birds, and to bring that person before some court or magistrate of competent jurisdiction, within the city, city and county, or judicial district within which the offense has been committed or attempted, to be dealt with according to law, and the attempt must be held to be a violation of Section 597.
Ca. Pen. Code § 599a