code: def set_default_style(style):
      
      global default_style
      if style == 'dark':
          style = default_dark_style
      elif style == 'light':
          style = default_light_style
  
      if not issubclass(style, Style):
          raise TypeError(
              "style must be a subclass of pygments.styles.Style or "
              "one of 'dark', 'light'. Got {}".format(repr(style))
          )
      default_style = style
docs: Sets default global style to be used by ``prettyprinter.cpprint``.
  
      :param style: the style to set, either subclass of
                    ``pygments.styles.Style`` or one of ``'dark'``, ``'light'``