code: def _repeat_helper(draw):
      shape = draw(
          st.shared(
              helpers.get_shape(min_num_dims=1), key="value_shape"
          )
      )
      axis = draw(
          st.shared(
              st.one_of(
                  st.none(), helpers.get_axis(shape=shape, max_size=1)
              ),
              key="axis",
          )
      )
  
      if not isinstance(axis, int) and axis is not None:
          axis = axis[0]
  
      repeat_shape = (
          (draw(st.one_of(st.just(1), st.just(shape[axis]))),)
          if axis is not None
          else (1,)
      )
      repeat = draw(
          helpers.dtype_and_values(
              available_dtypes=helpers.get_dtypes("integer"),
              shape=repeat_shape,
              min_value=0,
              max_value=10,
          )
      )
      return repeat
  
imports: import numpy
  from hypothesis import strategies, assume
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test
label_desc: Use image node_id 7 for calling a global function with example usage: _repeat_helper(draw) and returns: repeat