code: def _get_config(plugin):
      """Old Plugin resolution logic.
  
      Remove once we remove the old format manager.
      """
  
      extension_name = None
  
      if Path(plugin).suffix.lower() in known_extensions:
          extension_name = Path(plugin).suffix.lower()
      elif plugin in known_plugins:
          pass
      elif plugin.lower() in known_extensions:
          extension_name = plugin.lower()
      elif "." + plugin.lower() in known_extensions:
          extension_name = "." + plugin.lower()
      else:
          raise IndexError(f"No format known by name `{plugin}`.")
  
      if extension_name is not None:
          for plugin_name in [
              x
              for file_extension in known_extensions[extension_name]
              for x in file_extension.priority
          ]:
              if known_plugins[plugin_name].is_legacy:
                  plugin = plugin_name
                  break
  
      return known_plugins[plugin]
  
imports: import sys
  import warnings
  import contextlib
  import numpy
  from pathlib import Path
  from .None import Array, asarray
  from .request import ImageMode
  from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
  from ..config.plugins import _original_order
  from .imopen import imopen
label_desc: Use image node_id 1 for calling a global function with example usage: _get_config(plugin) and returns: known_plugins