





import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

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




@dataclass(frozen=UpperCamelCase__      )
class     SCREAMING_SNAKE_CASE__ (						UpperCamelCase__      ):
 __SCREAMING_SNAKE_CASE							       =	field(default='''automatic-speech-recognition'''				,					metadata={'''include_in_asdict_even_if_is_default''': True}      )
 __SCREAMING_SNAKE_CASE							       =	Features({'''audio''': Audio()}      )
 __SCREAMING_SNAKE_CASE							       =	Features({'''transcription''': Value('''string'''      )}      )
 __SCREAMING_SNAKE_CASE							       =	"audio"
 __SCREAMING_SNAKE_CASE							       =	"transcription"



 def 				UpperCamelCase			(							self,__lowerCamelCase ):
        if self.audio_column not in features:
               raise ValueError(f"Column {self.audio_column} is not present in features." )
        if not isinstance(features[self.audio_column],__lowerCamelCase ):
               raise ValueError(f"Column {self.audio_column} is not an Audio type." )
        A__											=						copy.deepcopy(self )
        A__											=						self.input_schema.copy()
        A__											=						features[self.audio_column]
        A__											=						input_schema
        return task_template




 @property
 def 				UpperCamelCase			(							self ):
        return {self.audio_column: "audio", self.transcription_column: "transcription"}












from __future__ import annotations

import math


def 	UpperCamelCase__(       UpperCamelCase__			:       int  )->bool:

       if 1 < number < 4:
              # 2 and 3 are primes
              return True
       elif number < 2 or number % 2 == 0 or number % 3 == 0:
              # Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
              return False

       # All primes number are in format of 6k +/- 1
       for i in range(5 ,     int(math.sqrt(UpperCamelCase__  ) + 1  ) ,     6  ):
              if number % i == 0 or number % (i + 2) == 0:
                     return False
       return True


def 	UpperCamelCase__(       UpperCamelCase__			:       int  )->list[int]:
       A__											=						str(UpperCamelCase__  )
       A__											=						[n]
       for i in range(1 ,     len(UpperCamelCase__  )  ):
              list_nums.append(int(str_num[i:]  )  )
              list_nums.append(int(str_num[:-i]  )  )
       return list_nums


def 	UpperCamelCase__(       UpperCamelCase__			:       int  )->bool:
       if len(str(UpperCamelCase__  )  ) > 3:
              if not is_prime(int(str(UpperCamelCase__  )[-3:]  )  ) or not is_prime(int(str(UpperCamelCase__  )[:3]  )  ):
                     return False
       return True


def 	UpperCamelCase__(       UpperCamelCase__			:       int = 11  )->list[int]:
       A__											=						[]
       A__											=						13
       while len(UpperCamelCase__  ) != count:
              if validate(UpperCamelCase__  ):
                     A__											=						list_truncated_nums(UpperCamelCase__  )
                     if all(is_prime(UpperCamelCase__  ) for i in list_nums  ):
                            list_truncated_primes.append(UpperCamelCase__  )
              num += 2
       return list_truncated_primes


def 	UpperCamelCase__(       )->int:
       return sum(compute_truncated_primes(11  )  )


if __name__ == "__main__":
       print(F"{sum(compute_truncated_primes(11)) = }")





