code: def md(E, symbols):
      L = E.shape[0]
      M = symbols.shape[0]
      syms_out = np.zeros(L, dtype=E.dtype)
      # omp parallel for
      for i in range(L):
          im = np.argmin(abs(E[i] - symbols) ** 2)
          syms_out[i] = symbols[im]
      return syms_out
  
label_desc: Use image node_id 1 for calling a global function with example usage: md(E, symbols) and returns: syms_out