code: def setup_doctest(request):
      """Set up the environment for doctests (when run through pytest)."""
      np.set_printoptions(precision=5, edgeitems=2, suppress=True)
  
      def fin():
          """Restore the environment after doctests (when run through pytest)."""
          np.set_printoptions(**_NP_PRINT_OPTIONS)
  
      request.addfinalizer(fin)
  
imports: from __future__ import absolute_import, division, print_function
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: setup_doctest(request) without return types