code: def _invert_color(color):
      """Return inverted color.
  
      If color is (R, G, B) it returns (1 - R, 1 - G, 1 - B). If
      'color' can not be converted to a color it is returned
      unmodified.
  
      """
      try:
          color_converter = colors.ColorConverter()
          color_rgb = color_converter.to_rgb(color)
          return tuple(1 - level for level in color_rgb)
      except ValueError:
          return color
  
file_path: nilearn/nilearn/plotting/glass_brain.py
imports: import json
  import os
  from matplotlib import colors, patches, transforms
  from matplotlib.path import Path
label_desc: Use image node_id 4 for calling a global function with example usage: _invert_color(color) and returns: tuple, color