def METHOD_NAME(pname, pinfo, pval):
  desc = pinfo.get("docString")
  unsorted = pval.get("unsorted")
  min="unset"
  max="unset"
  if "min" in pinfo.keys():
    min = pval.get("min")
  if "max" in pinfo.keys():
    max = pval.get("max")
  outfile.write("- \\b "+pname+" \\anchor "+pname+"\n")
  outfile.write("  - Description: "+desc+"\n")
  outfile.write("  - Valid values: a comma-separated list of\n")
  outfile.write("     - numbers\n")
  outfile.write("     - number ranges separated by a dash (\"1-5\")\n")
  outfile.write("     - the word \"all\" to indicate all possible values\n")
  if min != "unset":
    outfile.write("     - minimum is: "+min+"\n")
  if max != "unset":
    outfile.write("     - maximum is: "+max+"\n")
  outfile.write("  - Examples: \"1,2,7\", \"all\", \"5,1-15,80-82,99\"\n")
  outfile.write("  - Validator type: Zoltan2::IntegerRangeListValidator\n")
  if unsorted == "true":
    outfile.write(      "(list is not changed during processing)\n")
  else:
    outfile.write(      "(list will be sorted, and duplicates removed, during processing)\n")
  outfile.write("\n")