Is nurses' code of ethics a legal practice guideline or standard of practice?

Both.