code: def resize(x, newshape, /, refcheck=True):
      if isinstance(newshape, int):
          newshape = (newshape,)
      x_new = ivy.reshape(x, shape=(-1,), order="C")
      total_size = 1
      for diff_size in newshape:
          total_size *= diff_size
          if diff_size < 0:
              raise ValueError("values must not be negative")
      if x_new.size == 0 or total_size == 0:
          return ivy.zeros_like(x_new)
      repetition = -(-total_size // len(x_new))
      conc = (x_new,) * repetition
      x_new = ivy.concat(conc)[:total_size]
      y = ivy.reshape(x_new, shape=newshape, order="C")
      return y
  
file_path: ivy/ivy/functional/frontends/numpy/manipulation_routines/changing_array_shape.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 9 for calling a global function with example usage: resize(refcheck) and returns: y, ivy