code: def get_filter_by_name(filtername, **options):
      """Return an instantiated filter.
  
      Options are passed to the filter initializer if wanted.
      Raise a ClassNotFound if not found.
      """
      cls = find_filter_class(filtername)
      if cls:
          return cls(**options)
      else:
          raise ClassNotFound("filter %r not found" % filtername)
  
imports: import re
  from pygments.token import String, Comment, Keyword, Name, Error, Whitespace, string_to_tokentype
  from pygments.filter import Filter
  from pygments.util import get_list_opt, get_int_opt, get_bool_opt, get_choice_opt, ClassNotFound, OptionError, text_type, string_types
  from pygments.plugin import find_plugin_filters
label_desc: Use image node_id 2 for calling a global function with example usage: get_filter_by_name(filtername) and returns: cls