class_docstr: Defines requirements on final Pipelines and data validation options.
  
  Restrictions on Pipelines:
  :param primary: available graph operation/content types
  :param secondary: available graph operation/content types
  
  Model validation options:
  :param cv_folds: number of cross-validation folds
class_docstr_tok: ["Defines","requirements","on","final","Pipelines","and","data","validation","options",".","Restrictions","on","Pipelines",":",":","param","primary",":","available","graph","operation\/content","types",":","param","secondary",":","available","graph","operation\/content","types","Model","validation","options",":",":","param","cv_folds",":","number","of","cross-validation","folds"]
code: def __post_init__(self):
      super().__post_init__()
      if self.cv_folds is not None and self.cv_folds <= 1:
          raise ValueError(
              "Number of folds for KFold cross validation must be 2 or more."
          )
  
imports: from dataclasses import dataclass
  from typing import Optional, Sequence
  from golem.core.optimisers.optimization_parameters import GraphRequirements
label_desc: Use image node_id 1 for calling the PipelineComposerRequirements obj's underlying member method code with example usage: obj.__post_init__() without return types