class_docstr: Raised if calling an API but the corresponding model is not specified.
class_docstr_tok: ["Raised","if","calling","an","API","but","the","corresponding","model","is","not","specified","."]
code: def __init__(self, func_name, attr) -> None:
      super().__init__(
          f"Cannot call PaLM.{func_name}() since PaLM.{attr} is not set "
          "during class initialization."
      )
  
imports: import os
  import google.generativeai
  from ratelimit import limits, sleep_and_retry
  from typing import List
label_desc: Use image node_id 1 to create a new PaLMNoModelError object from inherited base classes: Error, RuntimeError with example: obj = PaLMNoModelError(func_name, attr)