code: def test_init(self):
      train_set = BasketDataset.from_ubi(self.basket_data)
  
      self.assertEqual(train_set.num_baskets, 25)
      self.assertEqual(train_set.max_basket_size, 3)
      self.assertEqual(train_set.min_basket_size, 1)
  
      self.assertEqual(train_set.num_users, 10)
      self.assertEqual(train_set.num_items, 7)
  
      self.assertEqual(train_set.uid_map["1"], 0)
      self.assertEqual(train_set.bid_map["1"], 0)
      self.assertEqual(train_set.iid_map["1"], 0)
  
      self.assertSetEqual(
          set(train_set.user_ids),
          set(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]),
      )
  
      self.assertSetEqual(
          set(train_set.item_ids),
          set(["1", "2", "3", "4", "5", "6", "7"]),
      )
  
imports: import unittest
  import numpy
  import numpy.testing
  from cornac.data import BasketDataset, Dataset, SequentialDataset, Reader
label_desc: Use image node_id 2 for calling the TestBasketDataset obj's underlying member method code with example usage: obj.test_init() without return types