Legislation, regulations and codes of conduct relating to the use of AI