o
    "j                     @   s(   d dl Z d dlZd dlmZ dd ZdS )    N)gastc                 C   sR   t | tjtjfstdt|  t | tjrt| } dd }tj| |d}|S )z/
    Transforms ast node into source code.
    z@Type of ast_root should be gast.AST or ast.AST, but received %s.c                 S   s
   d | S )N )join)source r   _/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddle/jit/dy2static/ast_utils.pypretty_source$   s   
z)ast_to_source_code.<locals>.pretty_source)r   )	
isinstancer   ASTast	TypeErrortypeZgast_to_astastorZ	to_source)Zast_noder   Zsource_coder   r   r   ast_to_source_code   s   
r   )r   r   Zpaddle.utilsr   r   r   r   r   r   <module>   s   