
    BVhV                     h   d Z ddlZddlZ eed      Ze Zd Zd Zd Zd Z	d Z
er)eZe	Zej                  Zej                  Zej                  Zyer_eZe
Z ej                   ej                  d	      Z ej                   ej                  d
      Z ej                   ej"                  d      ZyJ )z5Gast compatibility library. Supports 0.2.2 and 0.3.2.    NStrc                     t        | t        j                  t        j                  t        j                  t        j
                  t        j                  f      S N)
isinstancegastNumr   BytesEllipsisNameConstantnodes    Z/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/autograph/pyct/gast_util.py_is_constant_gast_2r      s7    	D488TXXtzz4==,,. 
/ /    c                 6    t        | t        j                        S r   )r   r   Constantr   s    r   _is_constant_gast_3r           	D$--	((r   c                 n    t        |       ryt        | t        j                        r| j                  dv ryy)z/Tests whether node represents a Python literal.T)TrueFalseNoneF)is_constantr   r   Nameidr   s    r   
is_literalr   $   s1      dii TWW0I%I	r   c                 6    t        | t        j                        S r   )r   r   r
   r   s    r   _is_ellipsis_gast_2r   1   r   r   c                 `    t        | t        j                        xr | j                  t        k(  S r   )r   r   r   valuer
   r   s    r   _is_ellipsis_gast_3r!   5   s!    	D$--	(	CTZZ8-CCr   )type_ignores)type_comment)kind)__doc__	functoolsr   hasattrGAST2GAST3r   r   r   r   r!   r   is_ellipsisModuler   r   partialr    r   r   <module>r.      s    <   	e	/
)
)D 	#+#+;;&	$#
#+#+9T[[t<&			4994	8$	$--d3# r   