code: def embed(X, we):
      return tf.reduce_sum(input_tensor=tf.gather(we, X), axis=2)
  
imports: import functools
  import numpy
  import tensorflow
  from finetune.optimizers.recompute_grads import recompute_grad
  from finetune.util.shapes import shape_list, lengths_from_eos_idx
  from finetune.nn.activations import act_fns
  from finetune.nn.nn_utils import dropout, norm
label_desc: Use image node_id 15 for calling a global function with example usage: embed(X, we) and returns: tf