code: def _axis(draw):
      max_val = draw(st.shared(helpers.ints(), key="num_dims"))
      return draw(helpers.ints(min_value=0, max_value=max_val - 1))
  
imports: import io
  import multiprocessing
  import os
  import re
  import shutil
  import sys
  import warnings
  import numpy
  import psutil
  import subprocess
  from hypothesis import strategies, assume
  import ivy
  import ivy_tests.test_ivy.helpers
  import ivy_tests.test_ivy.helpers.globals
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
label_desc: Use image node_id 1 for calling a global function with example usage: _axis(draw) and returns: draw