code: def _norm_helper(draw):
      def _matrix_norm_example():
          x_dtype, x = draw(
              helpers.dtype_and_values(
                  available_dtypes=helpers.get_dtypes("float"),
                  shape=helpers.get_shape(
                      min_num_dims=2, max_num_dims=2
                  ),
                  min_num_dims=2,
                  max_num_dims=2,
                  min_dim_size=1,
                  max_dim_size=10,
                  min_value=-1e4,
                  max_value=1e4,
                  large_abs_safety_factor=10,
                  small_abs_safety_factor=10,
                  safety_factor_scale="log",
              ),
          )
          ord = draw(st.sampled_from(["fro", "nuc"]))
          axis = (-2, -1)
          check_stable = True
          return x_dtype, x, axis, ord, check_stable
  
      def _vector_norm_example():
          x_dtype, x, axis = draw(
              helpers.dtype_values_axis(
                  available_dtypes=helpers.get_dtypes("float"),
                  min_num_dims=2,
                  max_num_dims=5,
                  min_dim_size=2,
                  max_dim_size=10,
                  valid_axis=True,
                  force_int_axis=True,
                  min_value=-1e04,
                  max_value=1e04,
                  large_abs_safety_factor=10,
                  small_abs_safety_factor=10,
                  safety_factor_scale="log",
              )
          )
          ints = draw(helpers.ints(min_value=1, max_value=2))
          floats = draw(helpers.floats(min_value=1, max_value=2))
          ord = draw(
              st.sampled_from(
                  [ints, floats, float("inf"), float("-inf")]
              )
          )
          check_stable = False
          return x_dtype, x, axis, ord, check_stable
  
      is_vec_norm = draw(st.booleans())
      if is_vec_norm:
          return _vector_norm_example()
      return _matrix_norm_example()
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_scipy/test_linalg/test_linalg.py
imports: import sys
  from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test, BackendHandler
label_desc: Use image node_id 2 for calling a global function with example usage: _norm_helper(draw) and returns: _matrix_norm_example, x_dtype,  x,  axis,  ord,  check_stable, x_dtype,  x,  axis,  ord,  check_stable, _vector_norm_example