class_docstr: Add labels for aesthetics and/or title
  
  Parameters
  ----------
  kwargs :
      Aesthetics (with scales) to be renamed. You can also
      set the `title` and `caption`.
class_docstr_tok: ["Add","labels","for","aesthetics","and\/or","title","Parameters","--","--","--","--","--","kwargs",":","Aesthetics","(","with","scales",")","to","be","renamed",".","You","can","also","set","the","`","title","`","and","`","caption","`","."]
code: def __init__(self, **kwargs: str):
      unknown = kwargs.keys() - VALID_LABELS
      if unknown:
          raise PlotnineError(
              f"Cannot deal with these labels: {unknown}"
          )
      self.labels = labels_view(**rename_aesthetics(kwargs))
  
file_path: plotnine/plotnine/labels.py
imports: from __future__ import annotations
  import typing
  from .exceptions import PlotnineError
  from .iapi import labels_view
  from .mapping.aes import SCALED_AESTHETICS, rename_aesthetics
label_desc: Use image node_id 1 to create a new labs object  with example: obj = labs()