code: def valid_temp(cls, v):
      if v is not None and v <= 0:
          raise ValidationError(
              "`temperature` must be strictly positive"
          )
      return v
  
imports: from enum import Enum
  from pydantic import BaseModel, validator
  from typing import Optional, List
  from text_generation.errors import ValidationError
label_desc: Use image node_id 4 for calling the Parameters obj's underlying member method code with example usage: obj.valid_temp(cls, v) and returns: v