code: def updateColors(layout):
      for k, v in list(layout.items()):
          if isinstance(v, dict):
              updateColors(v)
          else:
              if isinstance(v, list):
                  for _ in v:
                      if isinstance(_, dict):
                          updateColors(_)
              if "colorscale" in k.lower():
                  continue
              if "color" in k.lower():
                  if "rgba" not in v:
                      layout[k] = normalize(v)
      return layout
  
imports: import copy
  import numpy
  import pandas
  import plotly.offline
  import plotly.figure_factory
  from plotly.graph_objs import Figure, Scatter, Line
  from plotly.subplots import make_subplots
  from .None import themes
  from .None import auth, ta
  from .colors import normalize, to_rgba
  from .utils import check_kwargs, deep_update, dict_replace_keyword, kwargs_from_keyword, merge_dict, is_list, make_list
label_desc: Use image node_id 3 for calling a global function with example usage: updateColors(layout) and returns: layout