code: def _dtype_values_axis(draw):
      dtype_and_values = draw(
          helpers.dtype_and_values(
              available_dtypes=helpers.get_dtypes("float"),
              min_num_dims=2,
              max_num_dims=5,
              min_dim_size=2,
              max_dim_size=5,
              min_value=0.1,
              max_value=1000.0,
          )
      )
  
      dtype, x = dtype_and_values
      x = x[0]
      r = len(x.shape)
  
      valid_axes = [None]
  
      for i in range(-r, r):
          valid_axes.append(i)
          for j in range(-r, r):
              if i != j and abs(i - j) != r:
                  valid_axes.append([i, j])
  
      axis = draw(st.sampled_from(valid_axes))
  
      p_list = ["fro", 1, 2, ivy.inf, -ivy.inf]
      if isinstance(axis, list) and len(axis) == 2:
          p = draw(
              st.one_of(
                  st.sampled_from(p_list),
                  st.floats(
                      min_value=1.0,
                      max_value=10.0,
                      allow_infinity=False,
                  ),
              )
          )
      else:
          p = draw(
              st.one_of(
                  st.sampled_from(p_list + [0]),
                  st.floats(
                      min_value=1.0,
                      max_value=10.0,
                      allow_infinity=False,
                  ),
              )
          )
  
      return dtype, x, axis, p
  
imports: import ivy
  from hypothesis import strategies, assume
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import assert_all_close
  from ivy_tests.test_ivy.helpers import handle_frontend_test, matrix_is_stable
  from ivy_tests.test_ivy.test_functional.test_core.test_linalg import _get_dtype_and_matrix
  from ivy_tests.test_ivy.test_frontends.test_tensorflow.test_linalg import _get_second_matrix, _get_cholesky_matrix
  from ivy_tests.test_ivy.test_frontends.test_torch.test_blas_and_lapack_ops import _get_dtype_input_and_mat_vec
label_desc: Use image node_id 1 for calling a global function with example usage: _dtype_values_axis(draw) and returns: dtype,  x,  axis,  p