Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.compat.v1.flags.doc_to_help

Takes a doc string and reformats it as help.

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