o
    ÉÙ¾io  ã                   @   s   d Z ddlmZ ddd„ZdS )zBridge utils.é    )Úabsolute_importNc              
   C   s4   zt | ƒW S  ty } z|s|‚t|ƒ‚d}~ww )ai  Try import specified package, with custom message support.
    Parameters
    ----------
    package : str
        The name of the targeting package.
    message : str, default is None
        If not None, this function will raise customized error message when import error is found.
    Returns
    -------
    module if found, raise ImportError otherwise
    N)Ú
__import__ÚImportError)ÚpackageÚmessageÚe© r   úG/home/ubuntu/.local/lib/python3.10/site-packages/decord/bridge/utils.pyÚ
try_import   s   
€ýr
   )N)Ú__doc__Ú
__future__r   r
   r   r   r   r	   Ú<module>   s    