code: def handle_np2():
      # TODO: remove when we require numpy >= 2
      try:
          import numpy as np
  
          np.set_printoptions(legacy="1.21")
      except ImportError:
          pass
  
imports: import pytest
  from skimage._shared.testing import setup_test, teardown_test
label_desc: Use image node_id 3 for calling a global function with example usage: handle_np2() without return types