class_docstr: Highlight a normal Name (and Name.*) token with a different token type.
  
  Example::
  
      filter = NameHighlightFilter(
          names=['foo', 'bar', 'baz'],
          tokentype=Name.Function,
      )
  
  This would highlight the names "foo", "bar" and "baz"
  as functions. `Name.Function` is the default token type.
  
  Options accepted:
  
  `names` : list of strings
    A list of names that should be given the different token type.
    There is no default.
  `tokentype` : TokenType or string
    A token type or a string containing a token type name that is
    used for highlighting the strings in `names`.  The default is
    `Name.Function`.
class_docstr_tok: ["Highlight","a","normal","Name","(","and","Name",".","*",")","token","with","a","different","token","type",".","Example",":",":","filter","=","NameHighlightFilter","(","names=","[","'foo","'",",","'bar","'",",","'baz","'","]",",","tokentype=Name.Function",",",")","This","would","highlight","the","names","``","foo","''",",","``","bar","''","and","``","baz","''","as","functions",".","`","Name.Function","`","is","the","default","token","type",".","Options","accepted",":","`","names","`",":","list","of","strings","A","list","of","names","that","should","be","given","the","different","token","type",".","There","is","no","default",".","`","tokentype","`",":","TokenType","or","string","A","token","type","or","a","string","containing","a","token","type","name","that","is","used","for","highlighting","the","strings","in","`","names","`",".","The","default","is","`","Name.Function","`","."]
code: def filter(self, lexer, stream):
      for ttype, value in stream:
          if ttype in Name and value in self.names:
              yield self.tokentype, value
          else:
              yield ttype, value
  
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 the NameHighlightFilter obj's underlying member method code with example usage: obj.filter(lexer, stream) without return types