<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/experimental/auto_batching/gast_util.py#L36-L46) |

Tests whether node represents a Python literal.

    tfp.experimental.auto_batching.frontend.gast_util.is_literal(
        node
    )