code: def requires_tcl(*version):
      if len(version) <= 2:
          return unittest.skipUnless(
              tcl_version >= version,
              "requires Tcl version >= " + ".".join(map(str, version)),
          )
  
      def deco(test):
          @functools.wraps(test)
          def newtest(self):
              if get_tk_patchlevel() < version:
                  self.skipTest(
                      "requires Tcl version >= "
                      + ".".join(map(str, version))
                  )
              test(self)
  
          return newtest
  
      return deco
  
file_path: catboost/contrib/tools/python/src/Lib/lib-tk/test/test_ttk/support.py
imports: import functools
  import re
  import unittest
  import Tkinter
  import _tkinter
label_desc: Use image node_id 3 for calling a global function with example usage: requires_tcl() and returns: deco, unittest, newtest