class_docstr: Guides for each scale
  
  Used to assign a particular guide to an aesthetic(s).
  
  Parameters
  ----------
  kwargs : dict
      aesthetic - guide pairings. e.g
      ```python
      guides(color=guide_colorbar())
      ```
class_docstr_tok: ["Guides","for","each","scale","Used","to","assign","a","particular","guide","to","an","aesthetic","(","s",")",".","Parameters","--","--","--","--","--","kwargs",":","dict","aesthetic","-","guide","pairings",".","e.g","``","`","python","guides","(","color=guide_colorbar","(",")",")","``","`"]
docstr: Validate guide object
docstr_tok: ["Validate","guide","object"]
code: def validate(self, guide):
      """
      Validate guide object
      """
      if isinstance(guide, str):
          guide = Registry[f"guide_{guide}"]()
  
      if not isinstance(guide, guide_class):
          raise PlotnineError(f"Unknown guide: {guide}")
      return guide
  
imports: from __future__ import annotations
  import typing
  from copy import deepcopy
  from warnings import warn
  import numpy
  import pandas
  from .._utils.registry import Registry
  from ..exceptions import PlotnineError, PlotnineWarning
  from .guide import guide
label_desc: Use image node_id 5 for calling the guides obj's underlying member method code with example usage: obj.validate(guide) and returns: guide