message: Improve comments for tf.compat functions.
diff: @@ -40,7 +40,9 @@ from tensorflow.python.util.tf_export import tf_export
  def as_bytes(bytes_or_text, encoding='utf-8'):
  - """Converts either bytes or unicode to `bytes`, using utf-8 encoding for text.
  + """Converts either `bytes` or unicode python input types to `bytes`.
  +
  + Uses utf-8 encoding for text by default.
  Args:
  bytes_or_text: A `bytes`, `str`, or `unicode` object.
  @@ -62,7 +64,10 @@ def as_bytes(bytes_or_text, encoding='utf-8'):
  def as_text(bytes_or_text, encoding='utf-8'):
  - """Returns the given argument as a unicode string.
  + """Converts any string-like python input types to unicode.
  +
  + Returns the input as a unicode string. Uses utf-8 encoding for text
  + by default.
  Args:
  bytes_or_text: A `bytes`, `str`, or `unicode` object.
  @@ -95,7 +100,10 @@ else:
  @tf_export('compat.as_str_any')
  def as_str_any(value):
  - """Converts to `str` as `str(value)`, but use `as_str` for `bytes`.
  + """Converts input to `str` type.
  +
  + Uses `str(value)`, except for `bytes` typed inputs, which are converted
  + using `as_str`.
  Args:
  value: A object that can be converted to `str`.
  @@ -111,7 +119,10 @@ def as_str_any(value):
  @tf_export('compat.path_to_str')
  def path_to_str(path):
  - """Returns the file system path representation of a `PathLike` object, else as it is.
  + """Converts input which is a `PathLike` object to `str` type.
  +
  + Converts from any python constant representation of a `PathLike` object to
  + a string. If the input is not a `PathLike` object, simply returns the input.
  Args:
  path: An object that can be converted to path representation.
  @@ -125,7 +136,7 @@ def path_to_str(path):
  Examples:
  ```python3
  - >>> tf.compat.path_to_str('C:\XYZ\tensorflow\./.././tensorflow')
  + >>> tf.compat.path_to_str('C:\\XYZ\\tensorflow\\./.././tensorflow')
  'C:\\XYZ\\tensorflow\\./.././tensorflow' # Windows OS
  >>> tf.compat.path_to_str(Path('C:\XYZ\tensorflow\./.././tensorflow'))
  'C:\\XYZ\\tensorflow\\..\\tensorflow' # Windows OS
  