def METHOD_NAME(service: str) -> None:
    checks_with_global_skip = ["pylint", "verifywhl", "verifysdist" "bandit", "mypy", "pyright", "verifytypes"]
    root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", ".."))
    if service:
        target_dir = os.path.join(root_dir, "sdk", service)
    else:
        target_dir = root_dir
    targeted_packages = discover_targeted_packages("azure*", target_dir)
    for check in checks_with_global_skip:
        packages_running_check = []
        for pkg in targeted_packages:
            if is_check_enabled(pkg, check, True):
                packages_running_check.append(pkg)
        if len(packages_running_check) == 0:
            all_packages = set([os.path.basename(pkg) for pkg in targeted_packages])
            set_ci_variable(f"Skip.{check[0].upper()}{check[1:]}", "true")
            output_ci_warning(
                    f"All targeted packages {all_packages} skip the {check} check. Omitting step from build.",
                    "set_tox_environment.py",
            )