code: def test_scalar_inputs(domain, x):
      """pdf, cdf etc should map scalar values to scalars. check with and
      w/o domain since domain impacts pdf, cdf etc
      Take x inside and outside of domain"""
      rng = FastGeneratorInversion(stats.norm(), domain=domain)
      assert np.isscalar(rng._cdf(x))
      assert np.isscalar(rng._ppf(0.5))
  
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 15 for calling a global function with example usage: test_scalar_inputs(domain, x) without return types