def METHOD_NAME(self, row_number, row, stats):
    if len(row) != 5 and len(row) != 9:
        self.logger.error(
            "Row number %d has an invalid number of fields"
            " (%d), skipping..." % (row_number, len(row))
        )
        return
    item = self._create_item(*row[:5], stats=stats)
    if len(row) == 9:
        # With stock data
        self._create_stockrecord(item, *row[5:9])