code: def verify(self):
      if self.presence_penalty < 0.0:
          raise ValueError(
              f"presence_penalty must >= 0.0, got {self.presence_penalty}"
          )
      if self.frequency_penalty < 0.0:
          raise ValueError(
              f"frequency_penalty must >= 0.0, got {self.frequency_penalty}"
          )
      if self.temperature <= 0.0:
          raise ValueError(
              f"temperature must > 0.0, got {self.temperature}"
          )
      if self.top_p <= 0.0 or self.top_p > 1.0:
          raise ValueError(
              f"top_p must in (0.0, 1.0], got {self.top_p}"
          )
      if self.top_k < -1 or self.top_k == 0:
          raise ValueError(
              f"top_k must be -1 (disable), or at least 1, got {self.top_k}."
          )
      if self.max_new_tokens < 1:
          raise ValueError(
              f"max_new_tokens must be at least 1 , got {self.max_new_tokens}."
          )
      return
  
imports: from typing import List, Optional, Union
label_desc: Use image node_id 2 for calling the SamplingParams obj's underlying member method code with example usage: obj.verify() without return types