code: def _testGeneric(self, method, args1, args2=("r", "g", "b")):
      if len(args1) == len(args2) + 1:
          args2 += ("alpha",)
      for data in self.data:
          vals1 = [data.get(arg, 0.0) for arg in args1]
          vals2 = [data.get(arg, 0.0) for arg in args2]
          self.assertAlmostEqualMany(method(*vals1), vals2, 2)
  
imports: import unittest
  from igraph import hsv_to_rgb, hsva_to_rgba, hsl_to_rgb, hsla_to_rgba, rgb_to_hsl, rgba_to_hsla, rgba_to_hsva, rgb_to_hsv, GradientPalette, AdvancedGradientPalette
label_desc: Use image node_id 3 for calling the ColorTests obj's underlying member method code with example usage: obj._testGeneric(method, args1, args2) without return types