code: def test_numpy_nanmedian(
      dtype_x_axis,
      frontend,
      test_flags,
      fn_tree,
      backend_fw,
      on_device,
      keep_dims,
      overwrite_input,
  ):
      input_dtypes, x, axis = dtype_x_axis
      np_frontend_helpers.test_frontend_function(
          input_dtypes=input_dtypes,
          frontend=frontend,
          backend_to_test=backend_fw,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          a=x[0],
          axis=axis,
          overwrite_input=overwrite_input,
          out=None,
          keepdims=keep_dims,
      )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_statistics/test_averages_and_variances.py
imports: from hypothesis import strategies, assume
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.test_functional.test_core.test_statistical import _statistical_dtype_values
  import ivy_tests.test_ivy.test_frontends.test_numpy.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_numpy_nanmedian(dtype_x_axis, frontend, test_flags, fn_tree, backend_fw, on_device, keep_dims, overwrite_input) without return types