def METHOD_NAME(ordering, dmpl):
  r=OM2ring(dmpl.args[0], OrderingTableBack[ordering])
  r.set()
  i=OM2ideal_raw(dmpl)
  res=singular.groebner(i)
  #FIXME: singular.groebner does not work may because of bad ring changes
  #FIXME: increase reference to ring in ideal, polynomial class
  return gb2OM(res)