


"""simple docstring"""






from collections import defaultdict







def        lowerCamelCase_(		_lowerCamelCase			,		_lowerCamelCase       )    ->     bool:
   '''simple docstring'''





   _lowerCamelCase   :				str							=     first_str.lower().strip()
   _lowerCamelCase   :				Any							=     second_str.lower().strip()

   # Remove whitespace
   _lowerCamelCase   :				int							=     first_str.replace(" "			,		""       )
   _lowerCamelCase   :				List[Any]							=     second_str.replace(" "			,		""       )

   # Strings of different lengths are not anagrams
   if len(_lowerCamelCase       ) != len(_lowerCamelCase       ):
      return False

   # Default values for count should be 0
   _lowerCamelCase   :				defaultdict[str, int]							=     defaultdict(_lowerCamelCase       )

   # For each character in input strings,
   # increment count in the corresponding
   for i in range(len(_lowerCamelCase       )       ):
      count[first_str[i]] += 1
      count[second_str[i]] -= 1

   return all(_count == 0 for _count in count.values()       )


if __name__ == "__main__":
  from doctest import testmod

  testmod()
  _lowerCAmelCase							:    Union[str, Any]					   =	input('''Enter the first string ''').strip()
  _lowerCAmelCase							:    Optional[Any]					   =	input('''Enter the second string ''').strip()

  _lowerCAmelCase							:    Optional[Any]					   =	check_anagrams(input_a, input_b)
  print(f'''{input_a} and {input_b} are {'' if status else 'not '}anagrams.''')



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

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


@dataclass(frozen=A     )
class 		_SCREAMING_SNAKE_CASE     (						A     ):
     __SCREAMING_SNAKE_CASE     					=    field(default='''image-classification'''							,	metadata={'''include_in_asdict_even_if_is_default''': True}     )
     __SCREAMING_SNAKE_CASE     					=    Features({'''image''': Image()}     )
     __SCREAMING_SNAKE_CASE     					=    Features({'''labels''': ClassLabel}     )
     __SCREAMING_SNAKE_CASE     					=    "image"
     __SCREAMING_SNAKE_CASE     					=    "labels"


     def        __snake_case(  self							,					A_    ):
       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]							,					A_    ):
         raise ValueError(F'''Column {self.label_column} is not a ClassLabel.'''    )
       _UpperCAmelCase		:							Tuple							=     copy.deepcopy(self    )
       _UpperCAmelCase		:							str							=     self.label_schema.copy()
       _UpperCAmelCase		:							Optional[Any]							=     features[self.label_column]
       _UpperCAmelCase		:							int							=     label_schema
       return task_template




     @property
     def        __snake_case(  self    ):
       return {
           self.image_column: "image",
           self.label_column: "labels",
       }





