code: def _image_shape_helper(draw, data_format):
      n = draw(helpers.ints(min_value=1, max_value=10), label="batch")
      c = draw(st.sampled_from([1, 3]), label="channel")
      h = draw(helpers.ints(min_value=1, max_value=100), label="height")
      w = draw(helpers.ints(min_value=1, max_value=100), label="width")
  
      if data_format == "NCHW":
          shape = (n, c, h, w)
      else:
          shape = (n, h, w, c)
  
      return shape
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_paddle/test_nn/test_functional/test_vision.py
imports: import ivy
  from hypothesis import assume, strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 2 for calling a global function with example usage: _image_shape_helper(draw, data_format) and returns: shape