code: def is_literal(node):
      """Tests whether node represents a Python literal."""
      # Normal literals, True/False/None/Etc. in Python3
      if is_constant(node):
          return True
  
      # True/False/None/Etc. in Python2
      if isinstance(node, gast.Name) and node.id in [
          "True",
          "False",
          "None",
      ]:
          return True
  
      return False
  
file_path: DALI/dali/python/nvidia/dali/_autograph/pyct/gast_util.py
imports: import functools
  import gast
  from distutils.version import LooseVersion
label_desc: Use image node_id 3 for calling a global function with example usage: is_literal(node) and returns: False, True, True