tf.compat.v1.flags.doc_to_help

Takes a doc string and reformats it as help.

tf.compat.v1.flags.doc_to_help(doc)