code: def test_set_get_workers():
      cpus = os.cpu_count()
      assert fft.get_workers() == 1
      with fft.set_workers(4):
          assert fft.get_workers() == 4
  
          with fft.set_workers(-1):
              assert fft.get_workers() == cpus
  
          assert fft.get_workers() == 4
  
      assert fft.get_workers() == 1
  
      with fft.set_workers(-cpus):
          assert fft.get_workers() == 1
  
file_path: catboost/contrib/python/scipy/py3/scipy/fft/tests/test_multithreading.py
imports: from scipy import fft
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  import multiprocessing
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_get_workers() without return types