code: def __init__(
      self,
      n_users,
      n_items,
      n_vocab,
      k,
      layers,
      lambda_u,
      lambda_v,
      lambda_n,
      lambda_w,
      lr,
      dropout_rate,
      U,
      V,
      act_fn,
      seed,
  ):
      self.n_vocab = n_vocab
      self.n_users = n_users
      self.n_items = n_items
      self.lambda_u = lambda_u
      self.lambda_v = lambda_v
      self.lambda_n = lambda_n
      self.lambda_w = lambda_w
      self.layers = layers
      self.lr = lr  # learning rate
      self.k = k  # latent dimension
      self.dropout_rate = dropout_rate
      self.U_init = tf.constant(U)
      self.V_init = tf.constant(V)
      self.act_fn = act_fn
      self.seed = seed
  
      self._build_graph()
  
imports: import tensorflow.compat.v1
  from ...utils import get_rng
  from ...utils.init_utils import xavier_uniform
label_desc: Use image node_id 1 to create a new Model object  with example: obj = Model(n_users, n_items, n_vocab, k, layers, lambda_u, lambda_v, lambda_n, lambda_w, lr, dropout_rate, U, V, act_fn, seed)