code: def max_digits():
      # Set maximum number of digits for int/str conversion for
      # duration of a test
      try:
          orig_max_str_digits = sys.get_int_max_str_digits()
          yield sys.set_int_max_str_digits
          sys.set_int_max_str_digits(orig_max_str_digits)
      except AttributeError:  # pragma: no cover
          # Nothing to do for versions of Python that lack these methods
          # They were added as DoS protection in Python 3.11 and backported to
          # some other versions.
          yield lambda x: None
  
imports: import sys
  import numpy
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: max_digits() without return types