code: def _make_pretty_deprecated(deprecated):
      """
      Makes the deprecated description pretty and returns a formatted string if `deprecated`
      is not an empty string. Otherwise, returns None.
  
      Expected input:
  
          ...
  
      Expected output:
      **Deprecated:**
  
      ...
  
      """
  
      if deprecated != "":
          deprecated = "\n".join(
              map(lambda n: n[4:], deprecated.split("\n"))
          )
          return "**Deprecated:**\n%s\n" % deprecated
  
file_path: spark/sql/gen-sql-api-docs.py
imports: import os
  from collections import namedtuple
  from pyspark.java_gateway import launch_gateway
label_desc: Use image node_id 6 for calling a global function with example usage: _make_pretty_deprecated(deprecated) and returns: unknown