



'''simple docstring'''
import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import ClassLabel, Features, Value
from .base import TaskTemplate






@dataclass(frozen=lowercase  )
class 				lowercase__      (				lowercase  ):
	# `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
	lowercase__    							=     field(default="""text-classification"""		,   metadata={"""include_in_asdict_even_if_is_default""": True}  )
	lowercase__    							=     Features({"""text""": Value("""string"""  )}  )
	lowercase__    							=     Features({"""labels""": ClassLabel}  )
	lowercase__    							=     "text"
	lowercase__    							=     "labels"





	def       UpperCamelCase_    (					self   :							List[str]					,lowerCamelCase__   :							List[str]					):







							'''simple docstring'''
							if self.label_column not in features:
													raise ValueError(F'Column {self.label_column} is not present in features.'					)
							if not isinstance(features[self.label_column]					,lowerCamelCase__					):
													raise ValueError(F'Column {self.label_column} is not a ClassLabel.'					)
							_UpperCamelCase   :						Tuple												=  copy.deepcopy(self					)
							_UpperCamelCase   :						Tuple												=  self.label_schema.copy()
							_UpperCamelCase   :						List[str]												=  features[self.label_column]
							_UpperCamelCase   :						Any												=  label_schema
							return task_template





	@property
	def       UpperCamelCase_    (					self   :							Union[str, Any]					):







							'''simple docstring'''
							return {
							    self.text_column: "text",
							    self.label_column: "labels",
							}







'''simple docstring'''
def A__       (	UpperCAmelCase_    ,    UpperCAmelCase_				):
						return int((input_a, input_a).count(0				) != 0				)






def A__       (	):
						assert nand_gate(0    ,    0				) == 1
						assert nand_gate(0    ,    1				) == 1
						assert nand_gate(1    ,    0				) == 1
						assert nand_gate(1    ,    1				) == 0


if __name__ == "__main__":
					print(nand_gate(0, 0))
					print(nand_gate(0, 1))
					print(nand_gate(1, 0))
					print(nand_gate(1, 1))


