code: def run_matlab_script(script_lines, script_name="pyscript"):
      """Put multiline matlab script into script file and run"""
      mfile = open(script_name + ".m", "w")
      mfile.write(script_lines)
      mfile.close()
      return run_matlab(script_name)
  
imports: import os
  import re
  import subprocess
  import tempfile
label_desc: Use image node_id 2 for calling a global function with example usage: run_matlab_script(script_lines, script_name) and returns: run_matlab