code: def _xml_get(node: ET.Element, name: str) -> ET.Element:
      """Gets a named child from an XML Element node.
  
      This method is used to retrieve an XML element that is expected to exist as a
      subelement of the `node` passed into this argument. If the subelement is not
      found, then an error is thrown.
  
      Raises:
        ValueError: If the subelement is not found.
  
      Args:
        node: XML Element Tree node.
        name: Name of the child node to get
  
      Returns:
        A child node of the parameter node with the matching name.
      """
      result = node.find(name)
      if result is None:
          raise ValueError(
              f"Unexpected xml format: {name} not found in {node}"
          )
      return result
  
imports: import abc
  import collections
  import hashlib
  import json
  import math
  import os
  import tempfile
  from typing import Any, Dict, List, Mapping, Optional
  import xml.etree.ElementTree
  import tensorflow
  from mediapipe.model_maker.python.core.data import cache_files
  from official.vision.data import tfrecord_lib
label_desc: Use image node_id 1 for calling a global function with example usage: _xml_get(node, name) and returns: result