code: def test_max_1():
      myfield = basic_field()
      myfield.field[555] = 30
      depth = myfield.local_maxima()
      dep = np.zeros(1000, np.int_)
      dep[555] = 5
      dep[999] = 3
      assert sum(np.absolute(dep - depth)) < 1.0e-7
  
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 7 for calling a global function with example usage: test_max_1() without return types