class_docstr: Support for tifffile as backend.
  
  Parameters
  ----------
  request : iio.Request
      A request object that represents the users intent. It provides a
      standard interface for a plugin to access the various ImageResources.
      Check the docs for details.
  kwargs : Any
      Additional kwargs are forwarded to tifffile's constructor, i.e.
      to ``TiffFile`` for reading or ``TiffWriter`` for writing.
class_docstr_tok: ["Support","for","tifffile","as","backend",".","Parameters","--","--","--","--","--","request",":","iio.Request","A","request","object","that","represents","the","users","intent",".","It","provides","a","standard","interface","for","a","plugin","to","access","the","various","ImageResources",".","Check","the","docs","for","details",".","kwargs",":","Any","Additional","kwargs","are","forwarded","to","tifffile","'s","constructor",",","i.e",".","to","``","TiffFile","``","for","reading","or","``","TiffWriter","``","for","writing","."]
code: def __init__(self, request: Request, **kwargs) -> None:
      super().__init__(request)
      self._fh = None
  
      if request.mode.io_mode == "r":
          try:
              self._fh = tifffile.TiffFile(request.get_file(), **kwargs)
          except tifffile.tifffile.TiffFileError:
              raise InitializationError(
                  "Tifffile can not read this file."
              )
      else:
          self._fh = tifffile.TiffWriter(request.get_file(), **kwargs)
  
file_path: imageio/imageio/plugins/tifffile_v3.py
imports: from io import BytesIO
  from typing import Any, Dict, Optional, cast
  import warnings
  import numpy
  import tifffile
  from ..core.request import URI_BYTES, InitializationError, Request
  from ..core.v3_plugin_api import ImageProperties, PluginV3
  from ..typing import ArrayLike
label_desc: Use image node_id 1 to create a new TifffilePlugin object from inherited base classes: PluginV3 with example: obj = TifffilePlugin(request)