code: def repeat(tensor, repeats):
      """
      Repeat elements of an tensor. The same as ``numpy.repeat``.
  
      Parameters
      ----------
      input : tensor
      repeats: list, tuple
          Number of repeat for each dimension, length must be the
          same as the number of dimensions in input.
  
      Returns
      -------
      tensor
          Has the same type as input. Has the shape
          of ``tensor.shape * repeats``.
      """
      with tf.variable_scope("repeat"):
          expanded_tensor = tf.expand_dims(tensor, -1)
  
          multiples = as_tuple(1, repeats)
          tiled_tensor = tf.tile(expanded_tensor, multiples)
  
          repeats = tf.convert_to_tensor(repeats)
          return tf.reshape(tiled_tensor, tf.shape(tensor) * repeats)
  
file_path: neupy/neupy/utils/tf_utils.py
imports: from functools import wraps
  import numpy
  import tensorflow
  from neupy.utils.misc import as_tuple
  from neupy.utils.processing import asfloat
label_desc: Use image node_id 10 for calling a global function with example usage: repeat(tensor, repeats) and returns: tf