docs: def pformat(
      object,
      indent=_UNSET_SENTINEL,
      width=_UNSET_SENTINEL,
      depth=_UNSET_SENTINEL,
      *,
      ribbon_width=_UNSET_SENTINEL,
      max_seq_len=_UNSET_SENTINEL,
      compact=_UNSET_SENTINEL,
      sort_dict_keys=_UNSET_SENTINEL
  ):
      """
      Returns a pretty printed representation of the object as a ``str``.
      Accepts the same parameters as :func:`~prettyprinter.pprint`.
      The output is not colored.
      """
      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 = StringIO()
      default_render_to_stream(stream, sdocs)
      return stream.getvalue()