Specifying that a petition for emergency evaluation is effective for 5 days after being endorsed by a certain court; authorizing a court, on a certain motion and for good cause shown, to extend a petition for up to 5 days at a time, not to exceed a total of 30 days; requiring the court to include the date the petition expires on the petition; and requiring peace officers to comply with a certain provision of law when executing a petition.