def METHOD_NAME(draw, dim) -> Union[Slice, slice]:
  start = draw(int_indexer_strategy(dim))
  size = draw(hps.integers(min_value=0, max_value=np.iinfo(np.int32).max))
  return draw(
      hps.one_of(
          hps.just(Slice(start, size)), hps.just(slice(start, start + size))
      )
  )