code: def test_uij_iter(self):
      train_set = Dataset.from_uir(self.triplet_data, seed=123)
  
      users = [
          batch_users for batch_users, _, _ in train_set.uij_iter()
      ]
      self.assertSequenceEqual(users, range(10))
  
      pos_items = [
          batch_pos_items
          for _, batch_pos_items, _ in train_set.uij_iter()
      ]
      self.assertSequenceEqual(pos_items, range(10))
  
      neg_items = [
          batch_neg_items
          for _, _, batch_neg_items in train_set.uij_iter()
      ]
      self.assertRaises(
          AssertionError, self.assertSequenceEqual, neg_items, range(10)
      )
  
      neg_items = [
          batch_neg_items
          for _, _, batch_neg_items in train_set.uij_iter(
              neg_sampling="popularity"
          )
      ]
      self.assertRaises(
          AssertionError, self.assertSequenceEqual, neg_items, range(10)
      )
  
      try:
          for _ in train_set.uij_iter(neg_sampling="bla"):
              continue
      except ValueError:
          assert True
  
imports: import unittest
  import numpy
  import numpy.testing
  from cornac.data import BasketDataset, Dataset, SequentialDataset, Reader
label_desc: Use image node_id 7 for calling the TestDataset obj's underlying member method code with example usage: obj.test_uij_iter() without return types