code: def repeat_array(array, times):
      """Repeate numpy array."""
      if isinstance(array, list):
          return list(chain(*([array] * times)))
      else:
          return np.concatenate([array] * times, axis=0)
  
imports: from itertools import chain
  import numpy
  import paddle
label_desc: Use image node_id 1 for calling a global function with example usage: repeat_array(array, times) and returns: list, np