code: def GetExitStatus(exit_code):
      """Returns the argument to exit(), or -1 if exit() wasn't called.
  
      Args:
        exit_code: the result value of os.system(command).
      """
  
      if os.name == "nt":
          # On Windows, os.WEXITSTATUS() doesn't work and os.system() returns
          # the argument to exit() directly.
          return exit_code
      else:
          # On Unix, os.WEXITSTATUS() must be used to extract the exit status
          # from the result of os.system().
          if os.WIFEXITED(exit_code):
              return os.WEXITSTATUS(exit_code)
          else:
              return -1
  
imports: import os
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 3 for calling a global function with example usage: GetExitStatus(exit_code) and returns: exit_code, os, unknown