Fixes GitHub #51038

PiperOrigin-RevId: 387942657
Change-Id: Ic72003aacba338baaf7988ba2554bc878d893767
diff --git a/tensorflow/python/autograph/utils/ag_logging.py b/tensorflow/python/autograph/utils/ag_logging.py
index 7fc163a..0929fb7 100644
--- a/tensorflow/python/autograph/utils/ag_logging.py
+++ b/tensorflow/python/autograph/utils/ag_logging.py
@@ -60,17 +60,17 @@
   import os
   import tensorflow as tf
 
-  os.environ['AUTOGRAPH_VERBOSITY'] = 5
+  os.environ['AUTOGRAPH_VERBOSITY'] = '5'
   # Verbosity is now 5
 
   tf.autograph.set_verbosity(0)
   # Verbosity is now 0
 
-  os.environ['AUTOGRAPH_VERBOSITY'] = 1
+  os.environ['AUTOGRAPH_VERBOSITY'] = '1'
   # No effect, because set_verbosity was already called.
   ```
 
-  Logs entries are output to [absl](https://abseil.io)'s 
+  Logs entries are output to [absl](https://abseil.io)'s
   [default output](https://abseil.io/docs/python/guides/logging),
   with `INFO` level.
   Logs can be mirrored to stdout by using the `alsologtostdout` argument.