code: def main(argv):
      _ensure_cwd_is_fairlearn_root_dir()
      parser = build_argument_parser()
      args = parser.parse_args(argv)
  
      with _LogWrapper("installation of fairlearn"):
          subprocess.check_call(["pip", "install", "-e", "."])
  
      with _LogWrapper("processing README.rst"):
          process_readme("README.rst", "README.rst")
  
      with _LogWrapper(
          "storing fairlearn version in {}".format(
              args.version_filename
          )
      ):
          import fairlearn
  
          with open(args.version_filename, "w") as version_file:
              version_file.write(fairlearn.__version__)
  
      with _LogWrapper("creation of packages"):
          subprocess.check_call(
              ["python", "setup.py", "sdist", "bdist_wheel"]
          )
  
imports: import argparse
  import logging
  import subprocess
  import sys
  from _utils import _ensure_cwd_is_fairlearn_root_dir, _LogWrapper
  from process_readme import process_readme
label_desc: Use image node_id 2 for calling a global function with example usage: main(argv) without return types