code: def unitTests():
      """
      Run all unit tests (using py.test)
      Return the exit code.
      """
      try:
          if sys.version[0] == "3":
              out = subprocess.check_output(
                  "PYTHONPATH=. py.test-3", shell=True
              )
          else:
              out = subprocess.check_output(
                  "PYTHONPATH=. py.test", shell=True
              )
          ret = 0
      except Exception as e:
          out = e.output
          ret = e.returncode
      print(out.decode("utf-8"))
      return ret
  
imports: from contextlib import suppress
  import json
  import os
  import re
  import shutil
  import subprocess
  import sys
  from distutils import core
  from typing import Dict, Any
  from .generateChangelog import generateDebianChangelog
label_desc: Use image node_id 3 for calling a global function with example usage: unitTests() and returns: ret