code: def _squeeze_helper(draw):
      shape = draw(st.shared(helpers.get_shape(), key="value_shape"))
      valid_axes = []
      for index, axis in enumerate(shape):
          if axis == 1:
              valid_axes.append(index)
      valid_axes.insert(0, None)
      return draw(st.sampled_from(valid_axes))
  
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 8 for calling a global function with example usage: _squeeze_helper(draw) and returns: draw