docs: def get_current_module_ident(moduleid, plpy):
      """Retrieve module_ident for a given moduleid.
  
      Note that module_ident is used only for internal database relational
      associations, and is equivalent to a uuid@version for a given document.
      """
      plan = plpy.prepare('''\
          SELECT m.module_ident FROM modules m
          WHERE m.moduleid = $1 ORDER BY revised DESC''', ('text',))
      results = plpy.execute(plan, (moduleid,), 1)
      if results:
          return results[0]['module_ident']