code: def test_uu_train_adapt():
      "Test training an adapted user-user (#129)."
      from lenskit.algorithms import Recommender
  
      uu = knn.UserUser(30)
      uu = Recommender.adapt(uu)
      ret = uu.fit(ml_ratings)
      assert ret is uu
      assert isinstance(uu.predictor, knn.UserUser)
  
imports: from lenskit.algorithms import Recommender
  import lenskit.algorithms.user_knn
  from lenskit.util import clone
  from pathlib import Path
  import logging
  import pickle
  import pandas
  import numpy
  from scipy.sparse import linalg
  from pytest import approx, mark
  import lenskit.util.test
label_desc: Use image node_id 6 for calling a global function with example usage: test_uu_train_adapt() without return types