code: def test_paddle_index_sample(
      *,
      array_indices_axis,
      frontend,
      test_flags,
      fn_tree,
      backend_fw,
  ):
      dtype, x, index = array_indices_axis
      if index.ndim == 2 and index.shape[0] == x.shape[0]:
          helpers.test_frontend_function(
              input_dtypes=dtype,
              backend_to_test=backend_fw,
              frontend=frontend,
              test_flags=test_flags,
              fn_tree=fn_tree,
              x=x,
              index=index,
          )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_paddle/test_search.py
imports: import numpy
  from hypothesis import assume, strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 6 for calling a global function with example usage: test_paddle_index_sample() without return types