code: def color_check(color):
      
      if isinstance(color, (tuple, list)):
          if all(map(lambda x: isinstance(x, int), color)):
              if all(map(lambda x: x < 256, color)):
                  return list(color)
      if isinstance(color, str):
          color_lower = color.lower()
          if color_lower in TABLE_COLOR.keys():
              return TABLE_COLOR[color_lower]
      return [0, 0, 0]
docs: Check input color format.
  
      :param color: input color
      :type color : tuple
      :return: color as list