docstr: return a consumer matching the given keywords.
  
  tries to find the most suitable consumer by walking, starting from
  the back, the list of keywords, the first consumer matching a
  keyword is returned (falling back to py.log.default)
code: def getconsumer(self, keywords):
      """return a consumer matching the given keywords.
  
      tries to find the most suitable consumer by walking, starting from
      the back, the list of keywords, the first consumer matching a
      keyword is returned (falling back to py.log.default)
      """
      for i in range(len(keywords), 0, -1):
          try:
              return self.keywords2consumer[keywords[:i]]
          except KeyError:
              continue
      return self.keywords2consumer.get("default", default_consumer)
  
imports: import py
  import sys
label_desc: Use image node_id 4 for calling the KeywordMapper obj's underlying member method code with example usage: obj.getconsumer(keywords) and returns: self, self