code: def to_record(self, sequenced_item):
          
          kwargs = self.get_field_kwargs(sequenced_item)
          # Supply application_name, if needed.
          if hasattr(self.record_class, 'application_name'):
              kwargs['application_name'] = self.application_name
          # Supply pipeline_id, if needed.
          if hasattr(self.record_class, 'pipeline_id'):
              kwargs['pipeline_id'] = self.pipeline_id
          return self.record_class(**kwargs)
docs: Constructs a record object from given sequenced item object.