code: def resolve_color_default(
      color: t.Optional[bool] = None,
  ) -> t.Optional[bool]:
      """Internal helper to get the default value of the color flag.  If a
      value is passed it's returned unchanged, otherwise it's looked up from
      the current context.
      """
      if color is not None:
          return color
  
      ctx = get_current_context(silent=True)
  
      if ctx is not None:
          return ctx.color
  
      return None
  
file_path: catboost/contrib/python/click/py3/click/globals.py
imports: import typing
  from threading import local
label_desc: Use image node_id 6 for calling a global function with example usage: resolve_color_default(color) and returns: None, color, ctx