code: def cpprint(
      object,
      stream=_UNSET_SENTINEL,
      indent=_UNSET_SENTINEL,
      width=_UNSET_SENTINEL,
      depth=_UNSET_SENTINEL,
      *,
      compact=False,
      ribbon_width=_UNSET_SENTINEL,
      max_seq_len=_UNSET_SENTINEL,
      sort_dict_keys=_UNSET_SENTINEL,
      style=None,
      end='\n'
  ):
      sdocs = python_to_sdocs(
          object,
          **_merge_defaults(
              indent=indent,
              width=width,
              depth=depth,
              ribbon_width=ribbon_width,
              max_seq_len=max_seq_len,
              sort_dict_keys=sort_dict_keys,
          )
      )
      stream = (
          sys.stdout
          if stream is _UNSET_SENTINEL
          else stream
      )
      colored_render_to_stream(stream, sdocs, style=style)
      if end:
          stream.write(end)