code: def _is_ast_true(node):
      if hasattr(ast, "NameConstant"):
          return (
              isinstance(node, ast.NameConstant) and node.value is True
          )
      else:
          return isinstance(node, ast.Name) and node.id == "True"
  
imports: import ast
  import copy
  import functools
  import sys
  import pasta
  from tensorflow.tools.compatibility import all_renames_v2
  from tensorflow.tools.compatibility import ast_edits
  from tensorflow.tools.compatibility import module_deprecations_v2
  from tensorflow.tools.compatibility import reorders_v2
label_desc: Use image node_id 2 for calling a global function with example usage: _is_ast_true(node) and returns: unknown, unknown