code: def _try_compile(source, name):
      """Attempts to compile the given source, first as an expression and
      then as a statement if the first approach fails.
  
      Utility function to accept strings in functions that otherwise
      expect code objects
      """
      try:
          return compile(source, name, "eval")
      except SyntaxError:
          pass
      return compile(source, name, "exec")
  
imports: import sys
  import types
  import collections
  import io
  from opcode import *
  from opcode import __all__, _cache_format, _inline_cache_entries, _nb_ops, _intrinsic_1_descs, _intrinsic_2_descs, _specializations, _specialized_opmap
label_desc: Use image node_id 1 for calling a global function with example usage: _try_compile(source, name) and returns: compile, compile