code: def _validate_war(patches):
      if platform.system() == "Windows":
          patches.path_exists.assert_called_once_with(
              "/Users/dummyUser\\some-workflow.war"
          )
      else:
          patches.path_exists.assert_called_once_with(
              "/Users/dummyUser/some-workflow.war"
          )
  
file_path: serve/workflow-archiver/workflow_archiver/tests/unit_tests/test_workflow_packaging_utils.py
imports: import json
  import platform
  import pytest
  from collections import namedtuple
  from workflow_archiver.workflow_packaging_utils import WorkflowExportUtils
  from workflow_archiver.workflow_archiver_error import WorkflowArchiverError
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_war(patches) without return types