code: def test_mapwrapper_serial():
      in_arg = np.arange(10.0)
      out_arg = np.sin(in_arg)
  
      p = MapWrapper(1)
      assert_(p._mapfunc is map)
      assert_(p.pool is None)
      assert_(p._own_pool is False)
      out = list(p(np.sin, in_arg))
      assert_equal(out, out_arg)
  
      with assert_raises(RuntimeError):
          p = MapWrapper(0)
  
imports: from multiprocessing import Pool
  from multiprocessing.pool import Pool
  import re
  import math
  from fractions import Fraction
  import numpy
  from numpy.testing import assert_equal, assert_
  import pytest
  from pytest import raises
  import hypothesis.extra.numpy
  from hypothesis import given, strategies, reproduce_failure
  from scipy.conftest import array_api_compatible
  from scipy._lib._array_api import xp_assert_equal
  from scipy._lib._util import _aligned_zeros, check_random_state, MapWrapper, getfullargspec_no_self, FullArgSpec, rng_integers, _validate_int, _rename_parameter, _contains_nan, _rng_html_rewrite, _lazywhere
label_desc: Use image node_id 4 for calling a global function with example usage: test_mapwrapper_serial() without return types