# Path: imageio/plugins/spe.py
# class Spec:
# class SDTControlSpec:
#     class CommentDesc:
# class SpeFormat(Format):
#     class Reader(Format.Reader):
#         def __init__(
#             self,
#             n: int,
#             slice: slice,
#             cvt: Callable[[str], Any] = str,
#             scale: Optional[float] = None,
#         ):
#     def parse_comments(comments: Sequence[str]) -> Union[Dict, None]:
#     def get_datetime(date: str, time: str) -> Union[datetime, None]:
#     def extract_metadata(meta: Mapping, char_encoding: str = "latin1"):
#     def _can_read(self, request):
#     def _can_write(self, request):
#         def _open(self, char_encoding="latin1", check_filesize=True, sdt_meta=True):
#         def _get_meta_data(self, index):
#         def _close(self):
#         def _init_meta_data_pre_v3(self):
#         def _parse_header(self, spec):
#         def _init_meta_data_post_v3(self):
#         def _get_length(self):
#         def _get_data(self, index):
# def roi_array_to_dict(a):


from datetime import datetime
from imageio.plugins import spe
import numpy as np
import pytest
import imageio




def test_spe_format():
    for name in ("spe", ".spe"):
        fmt = imageio.formats[name]

# Path: imageio/plugins/spe.py
# class Spec:
# class SDTControlSpec:
#     class CommentDesc:
# class SpeFormat(Format):
#     class Reader(Format.Reader):
#         def __init__(
#             self,
#             n: int,
#             slice: slice,
#             cvt: Callable[[str], Any] = str,
#             scale: Optional[float] = None,
#         ):
#     def parse_comments(comments: Sequence[str]) -> Union[Dict, None]:
#     def get_datetime(date: str, time: str) -> Union[datetime, None]:
#     def extract_metadata(meta: Mapping, char_encoding: str = "latin1"):
#     def _can_read(self, request):
#     def _can_write(self, request):
#         def _open(self, char_encoding="latin1", check_filesize=True, sdt_meta=True):
#         def _get_meta_data(self, index):
#         def _close(self):
#         def _init_meta_data_pre_v3(self):
#         def _parse_header(self, spec):
#         def _init_meta_data_post_v3(self):
#         def _get_length(self):
#         def _get_data(self, index):
# def roi_array_to_dict(a):


# Path: tests/test_spe.py
from datetime import datetime
from imageio.plugins import spe
import numpy as np
import pytest
import imageio





def test_spe_format():
    for name in ("spe", ".spe"):
        fmt = imageio.formats[name]

        assert isinstance(fmt, spe.SpeFormat)