prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Convenience for wkcuber.api
  To open/create a dataset with the cool new high-level API the following code is required:
  
  ```python
  from wkcuber.api.Dataset import WKDataset
  from pathlib import Path
  
  ds1 = WKDataset.create(Path("path") / "to" / "dataset1", scale=(128,128,128))
  ds2 = WKDataset.open(Path("path") / "to" / "dataset2")
  
  ```
  
  For one-off scripts, I think that could be a bit more convenient, if we had an API like this
  
  ```python
  from wkcuber import WKDataset
  
  ds1 = WKDataset.create("path/to/dataset1", scale=(128, 128, 128))
  ds2 = WKDataset.open("path/to/dataset2")
  ```
  
  Any thoughts? @rschwanhold @jstriebel @philippotto 
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `wkcuber/__init__.py`
  Content:
  ```
  1 from .cubing import cubing
  2 from .downsampling import downsample_mags
  3 from .compress import compress_mag
  4 from .metadata import write_webknossos_metadata
  5
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/wkcuber/__init__.py b/wkcuber/__init__.py
  --- a/wkcuber/__init__.py
  +++ b/wkcuber/__init__.py
  @@ -1,4 +1,6 @@
  +from .api.Dataset import WKDataset
   from .cubing import cubing
   from .downsampling import downsample_mags
   from .compress import compress_mag
  +from .mag import Mag
   from .metadata import write_webknossos_metadata
  
verification_info: {"golden_diff": "diff --git a/wkcuber/__init__.py b/wkcuber/__init__.py\n--- a/wkcuber/__init__.py\n+++ b/wkcuber/__init__.py\n@@ -1,4 +1,6 @@\n+from .api.Dataset import WKDataset\n from .cubing import cubing\n from .downsampling import downsample_mags\n from .compress import compress_mag\n+from .mag import Mag\n from .metadata import write_webknossos_metadata\n", "issue": "Convenience for wkcuber.api\nTo open/create a dataset with the cool new high-level API the following code is required:\r\n\r\n```python\r\nfrom wkcuber.api.Dataset import WKDataset\r\nfrom pathlib import Path\r\n\r\nds1 = WKDataset.create(Path(\"path\") / \"to\" / \"dataset1\", scale=(128,128,128))\r\nds2 = WKDataset.open(Path(\"path\") / \"to\" / \"dataset2\")\r\n\r\n```\r\n\r\nFor one-off scripts, I think that could be a bit more convenient, if we had an API like this\r\n\r\n```python\r\nfrom wkcuber import WKDataset\r\n\r\nds1 = WKDataset.create(\"path/to/dataset1\", scale=(128, 128, 128))\r\nds2 = WKDataset.open(\"path/to/dataset2\")\r\n```\r\n\r\nAny thoughts? @rschwanhold @jstriebel @philippotto \r\n\n", "before_files": [{"content": "from .cubing import cubing\nfrom .downsampling import downsample_mags\nfrom .compress import compress_mag\nfrom .metadata import write_webknossos_metadata\n", "path": "wkcuber/__init__.py"}], "after_files": [{"content": "from .api.Dataset import WKDataset\nfrom .cubing import cubing\nfrom .downsampling import downsample_mags\nfrom .compress import compress_mag\nfrom .mag import Mag\nfrom .metadata import write_webknossos_metadata\n", "path": "wkcuber/__init__.py"}]}