code: def win_only(f):
      def f_wrapped(*args, **kwargs):
          if not on_win():
              raise NotOnWindowsError(
                  "Windows-only function is called, but platform is not Windows"
              )
          return f(*args, **kwargs)
  
      return f_wrapped
  
imports: import os
  import stat
  import sys
  import shutil
  import logging
  from six import reraise
  import library.python.func
  import library.python.strings
label_desc: Use image node_id 2 for calling a global function with example usage: win_only(f) and returns: f_wrapped, f