code: def mock_fsspec():
      original_registry = fsspec.registry.copy()
      fsspec.register_implementation("mock", MockFileSystem)
      fsspec.register_implementation("tmp", TmpDirFileSystem)
      yield
      fsspec.registry = original_registry
  
imports: import posixpath
  import shutil
  from pathlib import Path
  from unittest.mock import patch
  import fsspec
  import pytest
  from fsspec.implementations.local import AbstractFileSystem, LocalFileSystem, stringify_path
label_desc: Use image node_id 1 for calling a global function with example usage: mock_fsspec() without return types