code: def import_csv(csv_file, **kwargs):
      
      records = get_imported_data(csv_file, **kwargs)
      _check_required_columns(csv_file, records.results)
      return records
docs: Imports data and checks that all required columns are there.