YouTube said it will automatically label photorealistic content created by AI, the video platform said.