code: def test_u_error(distname, args):
      # check sample against rvs generated by rv_continuous
      dist = getattr(stats, distname)(*args)
      with suppress_warnings() as sup:
          # filter the warnings thrown by UNU.RAN
          sup.filter(RuntimeWarning)
          rng = FastGeneratorInversion(dist)
      u_error, x_error = rng.evaluate_error(
          size=10_000, random_state=9807324628097097, x_error=False
      )
      assert u_error <= 1e-10
  
imports: import pytest
  import warnings
  import numpy
  from numpy.testing import assert_array_equal, assert_allclose, suppress_warnings
  from copy import deepcopy
  from scipy.stats.sampling import FastGeneratorInversion
  from scipy import stats
label_desc: Use image node_id 4 for calling a global function with example usage: test_u_error(distname, args) without return types