def METHOD_NAME():
    """
    Download and install oc mirror tool.
    """
    try:
        oc_mirror_version = exec_cmd("oc mirror version")
    except (CommandFailed, FileNotFoundError):
        logger.info("oc-mirror tool is not available, installing it")
        prepare_bin_dir()
        bin_dir = os.path.expanduser(config.RUN["bin_dir"])
        # it would be better to directly download pre-build binary, but it is
        # not available yet, so we have to build it from source from
        # https://github.com/openshift/oc-mirror
        oc_mirror_repo = "https://github.com/openshift/oc-mirror.git"
        oc_mirror_dir = os.path.join(constants.EXTERNAL_DIR, "oc-mirror")
        oc_mirror_branch = f"release-{get_ocp_version()}"
        clone_repo(url=oc_mirror_repo, location=oc_mirror_dir, branch=oc_mirror_branch)
        # build oc-mirror tool
        exec_cmd("make build", cwd=oc_mirror_dir)
        os.rename(
            os.path.join(oc_mirror_dir, "bin/oc-mirror"),
            os.path.join(bin_dir, "oc-mirror"),
        )
        oc_mirror_version = exec_cmd("oc mirror version")
    logger.info(
        f"oc-mirror tool is available: {oc_mirror_version.stdout.decode('utf-8')}"
    )