class_docstr: Checks the full filesystem resolution functionality, exercising each URL interpretation case.
code: def test_hdfs_url_direct_namenode_driver_libhdfs(self):
      suj = FilesystemResolver(
          "hdfs://{}/path".format(HC.WARP_TURTLE_NN1),
          self._hadoop_configuration,
          connector=self.mock,
          hdfs_driver="libhdfs",
          user=self.mock_name,
      )
      self.assertEqual(MockHdfs, type(suj.filesystem()))
      self.assertEqual(self.mock_name, suj.filesystem()._user)
      # Make sure we did not capture FilesystemResolver in a closure by mistake
      dill.dumps(suj.filesystem_factory())
  
imports: import unittest
  import dill
  from pyarrow.filesystem import LocalFileSystem
  from pyarrow.lib import ArrowIOError
  from six.moves.urllib.parse import urlparse
  import gcsfs
  import s3fs
  from petastorm.fs_utils import FilesystemResolver, get_filesystem_and_path_or_paths
  from petastorm.hdfs.tests.test_hdfs_namenode import HC, MockHadoopConfiguration, MockHdfs, MockHdfsConnector
label_desc: Use image node_id 8 for calling the FilesystemResolverTest obj's underlying member method code with example usage: obj.test_hdfs_url_direct_namenode_driver_libhdfs() without return types