


'''simple docstring'''

import abc
import copy
import dataclasses
from dataclasses import dataclass
from typing import ClassVar, Dict, Type, TypeVar

from ..features import Features


lowerCamelCase							:       List[Any]  						=     TypeVar('T', bound='TaskTemplate')
@dataclass(frozen=lowercase_					)
class   __lowerCAmelCase						(abc.ABC					):





      '''simple docstring'''






      lowerCAmelCase__ :					str
      lowerCAmelCase__ :					ClassVar[Features]
      lowerCAmelCase__ :					ClassVar[Features]



      def 				UpperCamelCase__		(self   :   T       ,						UpperCamelCase   :   Features			):

             '''simple docstring'''







             return copy.deepcopy(self			)



      @property
      def 				UpperCamelCase__		(self   :   Optional[int]			):

             '''simple docstring'''







             return Features(**self.input_schema       ,						**self.label_schema			)



      @property
      @abc.abstractmethod
      def 				UpperCamelCase__		(self   :   Any			):

             '''simple docstring'''







             raise NotImplementedError






      @classmethod
      def 				UpperCamelCase__		(cls   :   Type[T]       ,						UpperCamelCase   :   dict			):

             '''simple docstring'''







             lowercase__				      =			{f.name for f in dataclasses.fields(cls			)}
             return cls(**{k: v for k, v in template_dict.items() if k in field_names}			)








'''simple docstring'''

def _SCREAMING_SNAKE_CASE				(A	)	->	int:






       """simple docstring"""







       return 1 if input_a == 0 else 0

def _SCREAMING_SNAKE_CASE				()	->	None:






       """simple docstring"""







       assert not_gate(0	) == 1
       assert not_gate(1	) == 0


if __name__ == "__main__":
 print(not_gate(0))
 print(not_gate(1))




