def METHOD_NAME(log_path, server):
    if not isinstance(server, core.server_types.InProcessServer):
        core.core.download_file(
            log_path,
            os.path.join(tempfile.gettempdir(), "log2.txt"),
            server=server,
        )
        return os.path.join(tempfile.gettempdir(), "log2.txt")
    else:
        return log_path