code: def try_run(commands):
      """Run a series of commands and only return True if all ran fine."""
      if pyodide_js:
          return False
      with open(os.devnull, "w") as null:
          for command in commands:
              retcode = subprocess.call(
                  command,
                  stdout=null,
                  shell=True,
                  stderr=subprocess.STDOUT,
              )
              if retcode != 0:
                  return False
      return True
  
imports: from sympy.abc import x, y, z
  from sympy.external import import_module
  from sympy.testing.pytest import skip
  from sympy.utilities.codegen import codegen, make_routine, get_code_generator
  import sys
  import os
  import tempfile
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: try_run(commands) and returns: True, False, False