Checks whether a func has been decorated with @add_arg_scope or not. Args: func: function to check. Returns: a boolean.
(func)
| 187 | |
| 188 | |
| 189 | def has_arg_scope(func): |
| 190 | """Checks whether a func has been decorated with @add_arg_scope or not. |
| 191 | |
| 192 | Args: |
| 193 | func: function to check. |
| 194 | |
| 195 | Returns: |
| 196 | a boolean. |
| 197 | """ |
| 198 | return arg_scope_func_key(func) in _DECORATED_OPS |
| 199 | |
| 200 | |
| 201 | def arg_scoped_arguments(func): |
no test coverage detected