code: def valid_input(cls, v):
      if not v:
          raise ValidationError("`inputs` cannot be empty")
      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 1 for calling the Request obj's underlying member method code with example usage: obj.valid_input(cls, v) and returns: v