code: def get_color(color: Union[int, str, Tuple]) -> Color:
      if isinstance(color, str):
          if color.startswith("#"):
              return Color.from_hexstr(color)
          else:
              return Color.from_name(color)
      elif isinstance(color, int):
          return Color.from_hexint(color)
      else:
          return Color(*color)
  
file_path: kubric/kubric/core/color.py
imports: import colorsys
  from typing import NamedTuple, Tuple, Union
label_desc: Use image node_id 1 for calling a global function with example usage: get_color(color) and returns: Color, Color, Color, Color