code: def test_validate_color(self):
      # valid
      fou.validate_color("#ff6d04")
      fou.validate_color("#000")
      fou.validate_color("red")
      fou.validate_color("lightpink")
  
      # invalid
      with self.assertRaises(ValueError):
          fou.validate_color("#bcedfg")
  
      with self.assertRaises(ValueError):
          fou.validate_color("#ggg")
  
      with self.assertRaises(ValueError):
          fou.validate_color("yellowred")
  
imports: import time
  import unittest
  from unittest.mock import MagicMock, patch
  import numpy
  import fiftyone
  import fiftyone.constants
  import fiftyone.core.media
  import fiftyone.core.odm
  import fiftyone.core.utils
  from fiftyone.migrations.runner import MigrationRunner
  from decorators import drop_datasets
  from bson import ObjectId
  from fiftyone.core.odm.utils import load_dataset
label_desc: Use image node_id 2 for calling the CoreUtilsTests obj's underlying member method code with example usage: obj.test_validate_color() without return types