
    ΅i                         S SK r S SKrS SKJr  S\S\4S jr\ R                  S\4S j5       r	\ R                  S\S-  4S j5       r
g)    N)
ModuleTypenamereturnc                 j     [         R                  R                  U 5      nUSL$ ! [         a     gf = f)a<  Returns if a top-level module with :attr:`name` exists *without**
importing it. This is generally safer than try-catch block around a
`import X`. It avoids third party libraries breaking assumptions of some of
our tests, e.g., setting multiprocessing start method when imported
(see librosa/#747, torchvision/#544).
NF)	importlibutil	find_specImportError)r   specs     S/home/james-whalen/.local/lib/python3.13/site-packages/torch/utils/_import_utils.py_check_module_existsr      s8    ~~''-4 s   "% 
22c                      [        S5      $ )Ndill)r        r   dill_availabler      s    ''r   c                  L    [        5       (       d  g SS Kn U R                  SS9  U $ )Nr   F)use_dill)r   r   extend)r   s    r   import_dillr      s&     	KKKKr   )	functoolsimportlib.utilr   typesr   strboolr   	lru_cacher   r   r   r   r   <module>r      sh      s t  ( ( ( Z$&  r   