code: def test_datafile_init_unsorted(dataset_ncf_files_unsorted):
      train_path, _, _ = dataset_ncf_files_unsorted
      with pytest.raises(FileNotSortedException):
          datafile = DataFile(
              train_path,
              DEFAULT_USER_COL,
              DEFAULT_ITEM_COL,
              DEFAULT_RATING_COL,
              col_test_batch=None,
              binary=True,
          )
  
file_path: recommenders/tests/unit/recommenders/models/test_ncf_dataset.py
imports: import os
  import pytest
  import pandas
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_TIMESTAMP_COL
  from recommenders.models.ncf.dataset import DataFile, NegativeSampler, Dataset, EmptyFileException, MissingFieldsException, FileNotSortedException, MissingUserException
label_desc: Use image node_id 2 for calling a global function with example usage: test_datafile_init_unsorted(dataset_ncf_files_unsorted) without return types