
    pi                         d Z ddlmZmZ ddlmZ ddlmZ g Z ed      Z		 ddl
Z
 ee
j                        dee	ef   d	ee	   d
dfd       Zej                  d       y# e$ r Y yw xY w)z
Python polyfills for builtins
    )IterableMutableMapping)TypeVar   )substitute_in_graphTNmappingiterablereturnc                 H    | j                   }|D ]  } ||d      dz   | |<    y)z!Tally elements from the iterable.r      N)get)r	   r
   mapping_getelems       f/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/torch/_dynamo/polyfills/_collections.py_count_elementsr      s1     kk 	5D'a014GDM	5    r   )__doc__collections.abcr   r   typingr   
decoratorsr   __all__r   _collectionsr   intappendImportError r   r   <module>r      s    5  ,  CL	55653'51+5 
5 75 NN$% 		s   <A A'&A'