class_docstr: Resolves a dataset URL, makes a connection via pyarrow, and provides a filesystem object.
class_docstr_tok: ["Resolves","a","dataset","URL",",","makes","a","connection","via","pyarrow",",","and","provides","a","filesystem","object","."]
docstr: :return: A serializable function that can be used to recreate the filesystem
  object; useful for providing access to the filesystem object on distributed
  Spark executors.
docstr_tok: [":","return",":","A","serializable","function","that","can","be","used","to","recreate","the","filesystem","object",";","useful","for","providing","access","to","the","filesystem","object","on","distributed","Spark","executors","."]
code: def filesystem_factory(self):
      """
      :return: A serializable function that can be used to recreate the filesystem
      object; useful for providing access to the filesystem object on distributed
      Spark executors.
      """
      return self._filesystem_factory
  
file_path: petastorm/petastorm/fs_utils.py
imports: import logging
  import fsspec
  import pyarrow
  import six
  from six.moves.urllib.parse import urlparse, urlunparse
  from fsspec.core import strip_protocol
  from fsspec.utils import update_storage_options
  from petastorm.hdfs.namenode import HdfsNamenodeResolver, HdfsConnector
label_desc: Use image node_id 5 for calling the FilesystemResolver obj's underlying member method code with example usage: obj.filesystem_factory() and returns: self