code: def __init__(self, plugin_instance: PluginV3, **kwargs):
      self.instance = plugin_instance
      self.last_index = 0
      self.closed = False
  
      if (
          type(self.instance).__name__ == "PillowPlugin"
          and kwargs.get("pilmode") is not None
      ):
          kwargs["mode"] = kwargs["pilmode"]
          del kwargs["pilmode"]
  
      self.read_args = kwargs
  
imports: import re
  import warnings
  from numbers import Number
  from pathlib import Path
  from typing import Dict
  import numpy
  from imageio.core.legacy_plugin_wrapper import LegacyPlugin
  from imageio.core.util import Array
  from imageio.core.v3_plugin_api import PluginV3
  from .None import formats
  from .config import known_extensions, known_plugins
  from .core import RETURN_BYTES
  from .core.imopen import imopen
label_desc: Use image node_id 1 to create a new LegacyReader object  with example: obj = LegacyReader(plugin_instance)