code: def test_max_3():
      myfield = basic_field()
      myfield.field[555] = 27
      idx, depth = myfield.get_local_maxima()
      assert np.size(idx) == 2
      assert idx[0] == 555
      assert idx[1] == 999
      assert depth[0] == 5
      assert depth[1] == 5
  
imports: import numpy
  import numpy.random
  from numpy.testing import assert_array_equal
  from ..field import field_from_coo_matrix_and_data, field_from_graph_and_data
  from ..graph import wgraph_from_3d_grid
label_desc: Use image node_id 9 for calling a global function with example usage: test_max_3() without return types