code: def _writable_required(self, path):
          # type: (Text) -> FS
          
          if self.write_fs is None:
              raise errors.ResourceReadOnly(path)
          return self.write_fs
docs: Check that ``path`` is writeable.