def nearest_vertex(self, x, n_jobs=-<NUM_LIT:1>):
x = np.asarray(x)<EOL>if len(x.shape) == <NUM_LIT:1>: return self.nearest_vertex([x], n_jobs=n_jobs)[<NUM_LIT:0>]<EOL>if x.shape[<NUM_LIT:0>] == self.coordinates.shape[<NUM_LIT:0>]: x = x.T<EOL>n = self.coordinates.shape[<NUM_LIT:1>]<EOL>try:              (_, nei) = self.vertex_hash.query(x, k=<NUM_LIT:1>, n_jobs=n_jobs)<EOL>except Exception: (_, nei) = self.vertex_hash.query(x, k=<NUM_LIT:1>)<EOL>return nei<EOL>
mesh.nearest_vertex(x) yields the vertex index or indices of the vertex or vertices nearest
  to the coordinate or coordinates given in x.