code: def test_transform_user_with_user_bias():
      algo = Bias()
      algo.fit(simple_df)
  
      new_ratings = pd.Series(
          [4.0, 5.0], index=[1, 2]
      )  # items as index and ratings as values
  
      ratings_with_bias, user_bias = algo.transform_user(
          new_ratings
      )  # user: 13
      result = algo.inverse_transform_user(
          13, ratings_with_bias, user_bias
      )
  
      assert new_ratings[1] == result[1]
      assert new_ratings[2] == result[2]
  
imports: from lenskit.algorithms.bias import Bias
  from lenskit import util
  import logging
  import pickle
  import binpickle
  import pandas
  import numpy
  from pytest import approx, raises, mark
  from lenskit.util.test import ml_test
label_desc: Use image node_id 22 for calling a global function with example usage: test_transform_user_with_user_bias() without return types