code: def test_repeat():
      a = arange(10, chunk_size=2).reshape(2, 5)
  
      t = repeat(a, 3)
      assert t.shape == (30,)
  
      t = repeat(a, 3, axis=0)
      assert t.shape == (6, 5)
  
      t = repeat(a, 3, axis=1)
      assert t.shape == (2, 15)
  
      t = repeat(a, [3], axis=1)
      assert t.shape == (2, 15)
  
      t = repeat(a, [3, 4], axis=0)
      assert t.shape == (7, 5)
  
      with pytest.raises(ValueError):
          repeat(a, [3, 4], axis=1)
  
      a = tensor(np.random.randn(10), chunk_size=5)
  
      t = repeat(a, 3)
      t = tile(t)
      assert sum(t.nsplits[0]) == 30
  
      a = tensor(np.random.randn(100), chunk_size=10)
  
      t = repeat(a, 3)
      t = tile(t)
      assert sum(t.nsplits[0]) == 300
  
      a = tensor(np.random.randn(4))
      b = tensor((4,))
  
      t = repeat(a, b)
  
      t = tile(t)
      assert np.isnan(t.nsplits[0])
  
imports: import numpy
  import pytest
  from ....core import tile
  from ....core.operand import OperandStage
  from ...datasource import ones, tensor, arange
  from ..None import transpose, broadcast_to, where, argwhere, array_split, split, squeeze, result_type, repeat, copyto, isin, moveaxis, TensorCopyTo, atleast_1d, atleast_2d, atleast_3d, ravel, searchsorted, unique, sort, partition, topk, to_gpu, to_cpu
label_desc: Use image node_id 14 for calling a global function with example usage: test_repeat() without return types