code: def bias_prediction_serial(
      tf_prediction_serial,
      tf_projected_user_biases,
      tf_projected_item_biases,
      tf_x_user,
      tf_x_item,
  ):
      """
      Calculates the bias per user/item pair and adds it to the serial predictions
      :param tf_prediction_serial:
      :param tf_projected_user_biases:
      :param tf_projected_item_biases:
      :param tf_x_user:
      :param tf_x_item:
      :return:
      """
      gathered_user_biases = tf.gather(
          tf_projected_user_biases, tf_x_user
      )
      gathered_item_biases = tf.gather(
          tf_projected_item_biases, tf_x_item
      )
      return (
          tf_prediction_serial
          + gathered_user_biases
          + gathered_item_biases
      )
  
file_path: tensorrec/tensorrec/recommendation_graphs.py
imports: import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: bias_prediction_serial(tf_prediction_serial, tf_projected_user_biases, tf_projected_item_biases, tf_x_user, tf_x_item) and returns: unknown