code: def __init__(self, *args, local_root_dir, **kwargs):
      super().__init__()
      self._fs = LocalFileSystem(*args, **kwargs)
      self.local_root_dir = (
          Path(local_root_dir).resolve().as_posix() + "/"
      )
  
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 to create a new MockFileSystem object from inherited base classes: AbstractFileSystem with example: obj = MockFileSystem()