code: def test_probability_direct_dispatch(func, scipy_func):
      value = pt.vector("value")
      x = pm.Normal.dist(0, 1)
  
      np.testing.assert_almost_equal(
          func(x, value).eval({value: [0, 1]}),
          getattr(sp.norm(0, 1), scipy_func)([0, 1]),
      )
  
      np.testing.assert_almost_equal(
          func(x, [0, 1]).eval(),
          getattr(sp.norm(0, 1), scipy_func)([0, 1]),
      )
  
imports: import warnings
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  import scipy.stats.distributions
  from pytensor.graph.basic import ancestors, equal_computations
  from pytensor.tensor.random.op import RandomVariable
  from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1, IncSubtensor
  import pymc
  from pymc.logprob.basic import conditional_logp, icdf, logcdf, logp, transformed_conditional_logp
  from pymc.logprob.transforms import LogTransform
  from pymc.logprob.utils import replace_rvs_by_values
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 14 for calling a global function with example usage: test_probability_direct_dispatch(func, scipy_func) without return types