code: def fail_if_publish_binary_not_installed(binary, publish_target, install_link):
      
      if not shutil.which(binary):
          click.secho(
              "Publishing to {publish_target} requires {binary} to be installed and configured".format(
                  publish_target=publish_target, binary=binary
              ),
              bg="red",
              fg="white",
              bold=True,
              err=True,
          )
          click.echo(
              "Follow the instructions at {install_link}".format(
                  install_link=install_link
              ),
              err=True,
          )
          sys.exit(1)
docs: Exit (with error message) if ``binary` isn't installed