class_docstr: This class embodies functionality to resolve HDFS namenodes: per default or a nameservice.
code: def _load_site_xml_into_dict(self, xml_path, in_dict):
      assert (
          in_dict is not None
      ), "A valid dictionary must be supplied to process site XML"
      try:
          for prop in ET.parse(xml_path).getroot().iter("property"):
              in_dict[prop.find("name").text] = prop.find("value").text
      except ET.ParseError as ex:
          logger.error(
              "Unable to obtain a root node for the supplied XML in %s: %s",
              xml_path,
              ex,
          )
  
imports: import functools
  import inspect
  import logging
  import os
  from distutils.version import LooseVersion
  from xml.etree import ElementTree
  import pyarrow
  import six
  from pyarrow.hdfs import HadoopFileSystem
  from pyarrow.lib import ArrowIOError
  from six.moves.urllib.parse import urlparse
label_desc: Use image node_id 2 for calling the HdfsNamenodeResolver obj's underlying member method code with example usage: obj._load_site_xml_into_dict(xml_path, in_dict) without return types