code: def densify_sampled_item_predictions(
      tf_sample_predictions_serial, tf_n_sampled_items, tf_n_users
  ):
      """
      Turns the serial predictions of the sample items in to a dense matrix of shape [ n_users, n_sampled_items ]
      :param tf_sample_predictions_serial:
      :param tf_n_sampled_items:
      :param tf_n_users:
      :return:
      """
      densified_shape = tf.cast(
          tf.stack([tf_n_users, tf_n_sampled_items]), tf.int32
      )
      densified_predictions = tf.reshape(
          tf_sample_predictions_serial, shape=densified_shape
      )
      return densified_predictions
  
file_path: tensorrec/tensorrec/recommendation_graphs.py
imports: import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: densify_sampled_item_predictions(tf_sample_predictions_serial, tf_n_sampled_items, tf_n_users) and returns: densified_predictions