code: def extract_from_renamed_inputs(self, doc, renamed_inputs):
          
          extracted_value = self.extractor.extract(renamed_inputs)
          if not extracted_value:
              return doc
  
          if self.output_fields is not None and isinstance(extracted_value, dict):
              if isinstance(self.output_fields, list):
                  for field in self.output_fields:
                      if field in extracted_value:
                          self.insert_extracted_value(
                              doc, extracted_value[field], field)
              elif isinstance(self.output_fields, dict):
                  for key, value in self.output_fields.iteritems():
                      if key in extracted_value:
                          self.insert_extracted_value(
                              doc, extracted_value[key], value, key)
          else:
              self.insert_extracted_value(
                  doc, extracted_value, self.output_field)
docs: Apply the extractor to a document containing the renamed_inputs
          and insert the resulting value if defined in the value field
          of a copy of the extractor's metadata and insert that into the doc