code: def validate(self, guide):
          
          if is_string(guide):
              guide = Registry['guide_{}'.format(guide)]()
  
          if not isinstance(guide, guide_class):
              raise PlotnineError(
                  "Unknown guide: {}".format(guide))
          return guide
docs: Validate guide object