code: def get_num_positional_args_ufunc(draw, *, fn_name=None):
      """Draws data randomly from numbers between nin and nargs where nin and
      nargs are properties of the given ufunc.
  
      Parameters
      ----------
      draw
          special function that draws data randomly (but is reproducible)
          from a given data-set (ex. list).
      fn_name
          name of the ufunc.
  
      Returns
      -------
      A strategy that can be used in the @given hypothesis decorator.
      """
      func = getattr(np_frontend, fn_name)
      nin = func.nin
      nargs = func.nargs
      return draw(st.integers(min_value=nin, max_value=nargs))
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/helpers.py
imports: import numpy
  from hypothesis import strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  import ivy.functional.frontends.numpy
  from ivy_tests.test_ivy.helpers.pipeline_helper import BackendHandler, get_frontend_config
  import ivy_tests.test_ivy.helpers.globals
label_desc: Use image node_id 8 for calling a global function with example usage: get_num_positional_args_ufunc(draw) and returns: draw