code: def mock_startfile(mocker, platform):
      if platform == "windows":
          kwargs = {"autospec": True}
      else:
          kwargs = {"create": True, "new_callable": mocker.Mock}
      yield mocker.patch("os.startfile", **kwargs)
  
label_desc: Use image node_id 3 for calling a global function with example usage: mock_startfile(mocker, platform) without return types