code: def _repeat(x, num_repeats):
      ones = tf.ones((1, num_repeats), dtype="int32")
      x = tf.reshape(x, shape=(-1, 1))
      x = tf.matmul(x, ones)
      return tf.reshape(x, [-1])
  
file_path: keras-ocr/keras_ocr/recognition.py
imports: import typing
  import string
  import tensorflow
  from tensorflow import keras
  import numpy
  import cv2
  from .None import tools
label_desc: Use image node_id 2 for calling a global function with example usage: _repeat(x, num_repeats) and returns: tf