code: def get_item_key(self, item):
          
          try:
              ret = item[item['key']]
          except KeyError:
              logger.error("No 'key' available in {}".format(item))
          if isinstance(ret, list):
              return ret[0]
          else:
              return ret
docs: Return the value of the item 'key'.