code: def _is_constant_gast_2(node):
      return isinstance(
          node,
          (
              gast.Num,
              gast.Str,
              gast.Bytes,
              gast.Ellipsis,
              gast.NameConstant,
          ),
      )
  
imports: import functools
  import gast
label_desc: Use image node_id 1 for calling a global function with example usage: _is_constant_gast_2(node) and returns: isinstance