code: def test_null_to_p_float_with_extreme_values(
      alternative, expected_p_value, rng
  ):
      """Test that 1/n(null) is preserved with extreme values"""
      null = rng.normal(size=10000)
  
      result = _utils.null_to_p(20, null, alternative=alternative)
      assert math.isclose(
          result,
          expected_p_value,
      )
  
imports: import math
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from scipy.ndimage import generate_binary_structure
  from nilearn.mass_univariate import _utils
  from nilearn.mass_univariate.tests._testing import get_tvalue_with_alternative_library
label_desc: Use image node_id 8 for calling a global function with example usage: test_null_to_p_float_with_extreme_values(alternative, expected_p_value, rng) without return types