docs: def handle_unexpected_exception(max_traceback_levels=100):
      """Suppress stack traces for common errors and provide hints for how to resolve
      them."""
      exc_type, exc_msgs = sys.exc_info()[:2]
      if exc_type.__name__ == "SSLError":
          d1_cli.impl.util.print_error(
              """HTTPS / TLS / SSL / X.509v3 Certificate Error:
    An HTTPS connection could not be established. Verify that a DataONE node
    responds at the URL provided in the cn-url or mn-url session variable. If the
    URL is valid and if you intended to connect without authentication, make sure
    that the session variable, "anonymous", is set to True. If you intended to
    connect with authentication, make sure that the parameter, "cert-file", points
    to a valid certificate from CILogon. If the certificate has the private
    key in a separate file, also set "key-file" to the private key file.
    Otherwise, set "key-file" to None. Note that CILogon certificates must be
    renewed after 18 hours.
              """
          )
      elif exc_type.__name__ == "timeout":
          d1_cli.impl.util.print_error(
              """Timeout error:
    A connection to a DataONE node timed out. Verify that a DataONE node responds
    at the URL provided in the cn-url or mn-url session variable.
              """
          )
      else:
          _print_unexpected_exception(max_traceback_levels)