def METHOD_NAME(self, tmp_path, config, root=False, use_token=False):
    args = ["service", "install"]
    if use_token:
        args.append(config.get_token())
    try:
        service = start_cloudflared(
            tmp_path, config, cfd_args=args, cfd_pre_args=[], capture_output=False, root=root, skip_config_flag=use_token)
        yield service
    finally:
        start_cloudflared(
            tmp_path, config, cfd_args=["service", "uninstall"], cfd_pre_args=[], capture_output=False, root=root, skip_config_flag=use_token)