code: def cprint_map(text, cmap, **kwargs):
      
      try:
          print(colored_map(text, cmap), **kwargs)
      except TypeError:
          # flush is not supported by py2.7
          kwargs.pop("flush", None)
          print(colored_map(text, cmap), **kwargs)
docs: Print colorize text.
      cmap is a dict mapping keys to color options.
      kwargs are passed to print function
  
      Example:
          cprint_map("Hello world", {"Hello": "red"})