code: def _predict_user(model, req):
      user, udf = req
      watch = util.Stopwatch()
      res = model.predict_for_user(user, udf["item"])
      res = pd.DataFrame(
          {"user": user, "item": res.index, "prediction": res.values}
      )
      _logger.debug(
          "%s produced %f/%d predictions for %s in %s",
          model,
          res.prediction.notna().sum(),
          len(udf),
          user,
          watch,
      )
      return res
  
imports: import logging
  import warnings
  import pandas
  from ..None import util
label_desc: Use image node_id 1 for calling a global function with example usage: _predict_user(model, req) and returns: res