code: def pytest_sessionfinish(session, exitstatus):
      cellprofiler_core.utilities.java.stop_java()
  
      return exitstatus
  
imports: import cellprofiler_core.preferences
  import cellprofiler_core.utilities.java
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_sessionfinish(session, exitstatus) and returns: exitstatus