code: def dims_and_offset(draw, shape):
      shape_actual = draw(shape)
      dim1 = draw(helpers.get_axis(shape=shape, force_int=True))
      dim2 = draw(helpers.get_axis(shape=shape, force_int=True))
      offset = draw(
          st.integers(
              min_value=-shape_actual[dim1],
              max_value=shape_actual[dim1],
          )
      )
      return dim1, dim2, offset
  
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 7 for calling a global function with example usage: dims_and_offset(draw, shape) and returns: dim1,  dim2,  offset