code: def color_check(color):
      """
      Check input color format.
  
      :param color: input color
      :type color: tuple
      :return: color as list
      """
      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]
  
imports: from __future__ import division
  from functools import partial
  from .pycm_param import *
  from .pycm_util import rounder, sort_char_num
  import webbrowser
label_desc: Use image node_id 3 for calling a global function with example usage: color_check(color) and returns: list, TABLE_COLOR, list