code: def get_lexer_for_mimetype(_mime, **options):
      """
      Return a `Lexer` subclass instance that has `mime` in its mimetype
      list. The lexer is given the `options` at its instantiation.
  
      Will raise :exc:`pygments.util.ClassNotFound` if not lexer for that mimetype
      is found.
      """
      for modname, name, _, _, mimetypes in LEXERS.values():
          if _mime in mimetypes:
              if name not in _lexer_cache:
                  _load_lexers(modname)
              return _lexer_cache[name](**options)
      for cls in find_plugin_lexers():
          if _mime in cls.mimetypes:
              return cls(**options)
      raise ClassNotFound("no lexer for mimetype %r found" % _mime)
  
imports: import re
  import sys
  import types
  import fnmatch
  from os.path import basename
  from pygments.lexers._mapping import LEXERS
  from pygments.modeline import get_filetype_from_buffer
  from pygments.plugin import find_plugin_lexers
  from pygments.util import ClassNotFound, guess_decode
label_desc: Use image node_id 10 for calling a global function with example usage: get_lexer_for_mimetype(_mime) and returns: _lexer_cache, cls