This is known as Judicial notice and is used in many jurisdictions. It is normally supposed to be used only for facts about which there could be no possible controversy. The Wikipedia article linked above mentions such examples as "which day of the week corresponded to a particular calendar date or the approximate time at sunset." It can also be used to include the text of a law from another jurisdiction.
According to the Free Legal Encyclopedia (FLE) article:
When a court takes judicial notice of a certain fact, it obviates the need for parties to prove the fact in court. Ordinarily, facts that relate to a case must be presented to the judge or jury through testimony or tangible evidence. However, if each fact in a case had to be proved through such presentation, the simplest case would take weeks to complete. To avoid burdening the judicial system, all legislatures have approved court rules that allow a court to recognize facts that constitute common knowledge without requiring proof from the parties.
The most common judicially noticed facts include the location of streets, buildings, and geographic areas; periods of time; business customs; historical events; and federal, state, and INTERNATIONAL LAW. Legislatures also maintain statutes that give courts the power to recognize certain facts in specific situations. For example, in Idaho any document affixed with the official seal of the state PUBLIC UTILITIES commission must be judicially noticed by all courts (Idaho Code § 61-209 ). In Hawaii, when a commercial vehicle is cited for violating vehicle equipment regulations, a trial court must take judicial notice of the driver's subordinate position if the driver works for a company that owns the vehicle (Haw. Rev. Stat. § 291-37 ).
In the United States, Rule 201 of the Federal Rules of Evidence (FRE) covers this. It reads:
(a) Scope. This rule governs judicial notice of an adjudicative fact only, not a legislative fact.
(b) Kinds of Facts That May Be Judicially Noticed. The court may judicially notice a fact that is not subject to reasonable dispute because it:
(b) (1) is generally known within the trial court’s territorial jurisdiction; or
(b) (2) can be accurately and readily determined from sources whose accuracy cannot reasonably be questioned.
(c) Taking Notice. The court:
(c) (1) may take judicial notice on its own; or
(c) (2) must take judicial notice if a party requests it and the court is supplied with the necessary information.
(d) Timing. The court may take judicial notice at any stage of the proceeding.
(e) Opportunity to Be Heard. On timely request, a party is entitled to be heard on the propriety of taking judicial notice and the nature of the fact to be noticed. If the court takes judicial notice before notifying a party, the party, on request, is still entitled to be heard.
(f) Instructing the Jury. In a civil case, the court must instruct the jury to accept the noticed fact as conclusive. In a criminal case, the court must instruct the jury that it may or may not accept the noticed fact as conclusive.
Note that subsection (e) preserves the rights of parties to be heard on whether taking notice is proper in a given case. None also that subsection (f) makes it clear that this procedure may be used in both civil and criminal cases.
The Wikipedia article (linked above) says that most US states closely follow FRE 201 in their rules of evidence. (So does the FLE article.) Note also that the NZ law quoted in the question is very similar even in wording to FRE 201. The article mentions similar practices in Canada and Australia.
The Wikipedia article also says:
Legal disputes about foreign affairs are generally settled by judicial notice by obtaining the information directly from the office of the Secretary of State (in the United States). For example, if a litigant in an extradition hearing attempted to argue that Israel was not a sovereign state, a statement from the Secretary of State that the U.S. recognized Israel as a sovereign state would settle the issue and no evidence could be led to the contrary. (In the United Kingdom, similar result could be had to information from the Foreign Secretary.)
Note that under US FRE 201 no fact that enters the case under judicial notice is binding on a jury in a criminal case, and a defendant (or the defendant's lawyer) may be heard to offer contrary evidence. Thus the practice does not offer a way to evade cross-examination of a proper expert wittiness if used properly. Similar rules probably exist in other jurisdictions.
The FLE article linked above goes on to state:
The danger of judicial notice is that, if abused, it can deprive the fact finder of the opportunity to decide a contestable fact in a case. In Walker v. Halliburton Services, 654 So. 2d 365 (La. App. 1995), Johnny Walker fell from a tank truck approximately ten feet to a concrete floor. Walker sought WORKERS' COMPENSATION benefits for his injuries, and his claim was denied by the Office of Workers' Compensation.
At the application hearing, the hearing officer stated that it was her experience that a soft-tissue injury heals in six weeks. She then took judicial notice of the fact that a soft-tissue injury heals in six weeks—preventing Walker from contesting that proposition—and disallowed Walker's claim. On appeal the Louisiana Court of Appeal, Third Circuit, reversed the decision and ordered the payment of workers' compensation benefits. According to the court, it was a clear error of law for the hearing officer to take judicial notice of such intricate medical knowledge.
Considering the example in the question of a Labrador retriever attacking domestic ducks. I would think this would not be a proper subject for judicial notice, because it would be "subject to reasonable dispute". An expert might testify that this happens in many but not all dogs of the breed, or under certain conditions but not others. So it might be comparable to the soft tissue injury case where notice was improper. However, if all parties agreed that such notice might be taken, then perhaps there would be no issue, as no party had been deprived of a right to contest the alleged fact. In such a case this might be considered a stipulation rather than an example of judicial notice.