GC 69922. (cited in part) (a) Except as otherwise provided by law, whenever required, the sheriff shall attend all superior court sessions held within his or her county. A sheriff shall attend a noncriminal, nondelinquency action, however, only if the presiding judge or his or her designee makes a determination that the attendance of the sheriff at that action is necessary for reasons of public safety. The court may use court attendants in courtrooms hearing those noncriminal, nondelinquency actions. Notwithstanding any other law, the presiding judge or his or her designee may provide that a court attendant take charge of a jury, as provided in Sections 613 and 614 of the Code of Civil Procedure. The sheriff shall obey all lawful orders and directions of all courts held within his or her county.