code: def get_formatter_by_name(_alias, **options):
      """Lookup and instantiate a formatter by alias.
  
      Raises ClassNotFound if not found.
      """
      cls = find_formatter_class(_alias)
      if cls is None:
          raise ClassNotFound("no formatter found for name %r" % _alias)
      return cls(**options)
  
file_path: wandb/wandb/vendor/pygments/formatters/__init__.py
imports: import re
  import sys
  import types
  import fnmatch
  from os.path import basename
  from pygments.formatters._mapping import FORMATTERS
  from pygments.plugin import find_plugin_formatters
  from pygments.util import ClassNotFound, itervalues
label_desc: Use image node_id 5 for calling a global function with example usage: get_formatter_by_name(_alias) and returns: cls