code: def create_basket_encoder(
      x,
      dense_units,
      param_initializer,
      activation_func=None,
      name="Basket_Encoder",
      reuse=None,
  ):
      with tf.variable_scope(name, reuse=reuse):
          return tf.layers.dense(
              x,
              dense_units,
              kernel_initializer=param_initializer,
              bias_initializer=tf.zeros_initializer,
              activation=activation_func,
          )
  
file_path: cornac/cornac/models/beacon/beacon_tf.py
imports: import numpy
  import warnings
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling a global function with example usage: create_basket_encoder(x, dense_units, param_initializer, activation_func, name, reuse) and returns: tf