class_docstr: A plugin to  make old (v2.9) plugins compatible with v3.0
  
  .. depreciated:: 2.9
      `legacy_get_reader` will be removed in a future version of imageio.
      `legacy_get_writer` will be removed in a future version of imageio.
  
  This plugin is a wrapper around the old FormatManager class and exposes
  all the old plugins via the new API. On top of this it has
  ``legacy_get_reader`` and ``legacy_get_writer`` methods to allow using
  it with the v2.9 API.
  
  Methods
  -------
  read(index=None, **kwargs)
      Read the image at position ``index``.
  write(image, **kwargs)
      Write image to the URI.
  iter(**kwargs)
      Iteratively yield images from the given URI.
  get_meta(index=None)
      Return the metadata for the image at position ``index``.
  legacy_get_reader(**kwargs)
      Returns the v2.9 image reader. (depreciated)
  legacy_get_writer(**kwargs)
      Returns the v2.9 image writer. (depreciated)
  
  Examples
  --------
  
  >>> import imageio.v3 as iio
  >>> with iio.imopen("/path/to/image.tiff", "r", legacy_mode=True) as file:
  >>>     reader = file.legacy_get_reader()  # depreciated
  >>>     for im in file.iter():
  >>>         print(im.shape)
class_docstr_tok: ["A","plugin","to","make","old","(","v2.9",")","plugins","compatible","with","v3.0","..","depreciated",":",":","2.9","`","legacy_get_reader","`","will","be","removed","in","a","future","version","of","imageio",".","`","legacy_get_writer","`","will","be","removed","in","a","future","version","of","imageio",".","This","plugin","is","a","wrapper","around","the","old","FormatManager","class","and","exposes","all","the","old","plugins","via","the","new","API",".","On","top","of","this","it","has","``","legacy_get_reader","``","and","``","legacy_get_writer","``","methods","to","allow","using","it","with","the","v2.9","API",".","Methods","--","--","--","-","read","(","index=None",",","*","*","kwargs",")","Read","the","image","at","position","``","index","``",".","write","(","image",",","*","*","kwargs",")","Write","image","to","the","URI",".","iter","(","*","*","kwargs",")","Iteratively","yield","images","from","the","given","URI",".","get_meta","(","index=None",")","Return","the","metadata","for","the","image","at","position","``","index","``",".","legacy_get_reader","(","*","*","kwargs",")","Returns","the","v2.9","image","reader",".","(","depreciated",")","legacy_get_writer","(","*","*","kwargs",")","Returns","the","v2.9","image","writer",".","(","depreciated",")","Examples","--","--","--","--",">",">",">","import","imageio.v3","as","iio",">",">",">","with","iio.imopen","(","``","\/path\/to\/image.tiff","''",",","``","r","''",",","legacy_mode=True",")","as","file",":",">",">",">","reader","=","file.legacy_get_reader","(",")","#","depreciated",">",">",">","for","im","in","file.iter","(",")",":",">",">",">","print","(","im.shape",")"]
docstr: legacy_get_writer(**kwargs)
  
  Returns a :class:`.Writer` object which can be used to write data
  and meta data to the specified file.
  
  Parameters
  ----------
  kwargs : ...
      Further keyword arguments are passed to the writer. See :func:`.help`
      to see what arguments are available for a particular format.
docstr_tok: ["legacy_get_writer","(","*","*","kwargs",")","Returns","a",":","class",":","`",".Writer","`","object","which","can","be","used","to","write","data","and","meta","data","to","the","specified","file",".","Parameters","--","--","--","--","--","kwargs",":","...","Further","keyword","arguments","are","passed","to","the","writer",".","See",":","func",":","`",".help","`","to","see","what","arguments","are","available","for","a","particular","format","."]
code: def legacy_get_writer(self, **kwargs):
      """legacy_get_writer(**kwargs)
  
      Returns a :class:`.Writer` object which can be used to write data
      and meta data to the specified file.
  
      Parameters
      ----------
      kwargs : ...
          Further keyword arguments are passed to the writer. See :func:`.help`
          to see what arguments are available for a particular format.
      """
  
      # Note: this will break thread-safety
      self._request._kwargs = kwargs
      return self._format.get_writer(self._request)
  
file_path: imageio/imageio/core/legacy_plugin_wrapper.py
imports: from pathlib import Path
  import numpy
  from ..config import known_extensions
  from .request import InitializationError, IOMode
  from .v3_plugin_api import ImageProperties, PluginV3
label_desc: Use image node_id 4 for calling the LegacyPlugin obj's underlying member method code with example usage: obj.legacy_get_writer() and returns: self