def METHOD_NAME(self):
    data = Reader().read("./tests/data.txt")
    try:
        BaseMethod.from_splits(train_data=None, test_data=None)
    except ValueError:
        assert True
    try:
        BaseMethod.from_splits(train_data=data, test_data=None)
    except ValueError:
        assert True
    try:
        BaseMethod.from_splits(train_data=data, test_data=[], exclude_unknowns=True)
    except ValueError:
        assert True
    bm = BaseMethod.from_splits(train_data=data[:-1], test_data=data[-1:])
    self.assertEqual(bm.total_users, 10)
    self.assertEqual(bm.total_items, 10)
    bm = BaseMethod.from_splits(
        train_data=data[:-1],
        test_data=data[-1:],
        val_data=[(data[0][0], data[1][1], 5.0)],
        verbose=True,
    )
    self.assertEqual(bm.total_users, 10)
    self.assertEqual(bm.total_items, 10)