code: def _load_readme_description(
      path_dir: str, homepage: str, ver: str
  ) -> str:
      """Load readme as decribtion.
  
      >>> _load_readme_description(_PATH_ROOT, "", "")  # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
      '<div align="center">...'
  
      """
      path_readme = os.path.join(path_dir, "README.md")
      text = open(path_readme, encoding="utf-8").read()
  
      # https://github.com/Lightning-AI/lightning/raw/master/docs/source/_images/lightning_module/pt_to_pl.png
      github_source_url = os.path.join(homepage, "raw", ver)
      # replace relative repository path to absolute link to the release
      #  do not replace all "docs" as in the readme we reger some other sources with particular path to docs
      text = text.replace(
          "docs/source/_static/",
          f"{os.path.join(github_source_url, 'docs/source/_static/')}",
      )
  
      # readthedocs badge
      text = text.replace(
          "badge/?version=stable", f"badge/?version={ver}"
      )
      text = text.replace(
          "pytorch-lightning.readthedocs.io/en/stable/",
          f"pytorch-lightning.readthedocs.io/en/{ver}",
      )
      # codecov badge
      text = text.replace(
          "/branch/master/graph/badge.svg",
          f"/release/{ver}/graph/badge.svg",
      )
      # replace github badges for release ones
      return text.replace(
          "badge.svg?branch=master&event=push", f"badge.svg?tag={ver}"
      )
  
file_path: lightning-flash/setup.py
imports: import glob
  import os
  import re
  from functools import partial
  from importlib.util import module_from_spec, spec_from_file_location
  from itertools import chain
  from setuptools import find_packages, setup
label_desc: Use image node_id 1 for calling a global function with example usage: _load_readme_description(path_dir, homepage, ver) and returns: text