code: def remove(self, path, dir_fd=None):
          
          path = self._path_with_dir_fd(path, self.remove, dir_fd)
          self.filesystem.remove(path)
docs: Remove the FakeFile object at the specified file path.
  
          Args:
              path: Path to file to be removed.
              dir_fd: If not `None`, the file descriptor of a directory,
                  with `path` being relative to this directory.
                  New in Python 3.3.
  
          Raises:
              OSError: if path points to a directory.
              OSError: if path does not exist.
              OSError: if removal failed.