code: def _parse_options(xml):
      """Convert metadata xml to dict"""
      options = {}
      if len(xml) > 0:
          root = ET.fromstring(xml)
          for option in root.iter("Option"):
              option_name = option.attrib["name"]
              opt = {}
              opt.update(
                  (k, v)
                  for k, v in option.attrib.items()
                  if not k == "name"
              )
  
              values = []
              for value in option.iter("Value"):
                  values.append(value.text)
              if len(values) > 0:
                  opt["values"] = values
  
              options[option_name] = opt
  
      return options
  
file_path: Fiona/fiona/meta.py
imports: import logging
  import xml.etree.ElementTree
  from fiona.env import require_gdal_version
  from fiona.ogrext import _get_metadata_item
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_options(xml) and returns: options