class_docstr: This class embodies functionality to resolve HDFS namenodes: per default or a nameservice.
code: def _build_error_string(self, msg):
      if self._hadoop_path is not None:
          return (
              msg + "\nHadoop path {} in environment variable {}!\n"
              "Please check your hadoop configuration!".format(
                  self._hadoop_path, self._hadoop_env
              )
          )
      else:
          return msg + " the supplied Spark HadoopConfiguration"
  
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 3 for calling the HdfsNamenodeResolver obj's underlying member method code with example usage: obj._build_error_string(msg) and returns: unknown, unknown