code: def get_color(self, optname, precedence=0):
          'colors.color_foo returns colors[options.color_foo]'
          r = self.colorcache.get(optname, None)
          if r is None:
              coloropt = options._get(optname)
              colornamestr = coloropt.value if coloropt else optname
              r = self.colorcache[optname] = self._colornames_to_attr(colornamestr, precedence)
          return f get_color(self, optname, precedence=0):
          'colors.color_foo returns colors[options.color_foo]'
          r = self.colorcache.get(optname, None)
          if r is None:
              coloropt = options._get(optname)
              colornamestr = coloropt.value if coloropt else optname
              r = self.colorcache[optname] = self._colornames_to_attr(colornamestr, precedence)
          return r
docs: colors.color_foo returns colors[options.color_foo]