code: def fs_meta_manager(tmpdir):
      try:
          from jupyterfs.metamanager import MetaManager
      except ImportError:
          pytest.skip("jupyterfs is not available")
  
      cm_class = jupytext.build_jupytext_contents_manager_class(
          MetaManager
      )
      logger = logging.getLogger("jupyter-fs")
      cm = cm_class(parent=None, log=logger)
      cm.initResource(
          {
              "url": f"osfs://{tmpdir}",
          }
      )
      return cm
  
file_path: jupytext/tests/external/jupyter_fs/test_jupyter_fs.py
imports: import logging
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  import jupytext
  from jupytext.compare import compare_cells, notebook_model
label_desc: Use image node_id 1 for calling a global function with example usage: fs_meta_manager(tmpdir) and returns: cm