code: def test_loc_transform_rv(self, rv_size, loc_type, addition):
      loc = loc_type("loc")
      if addition:
          y_rv = loc + pt.random.normal(
              0, 1, size=rv_size, name="base_rv"
          )
      else:
          y_rv = pt.random.normal(
              0, 1, size=rv_size, name="base_rv"
          ) - pt.neg(loc)
      y_rv.name = "y"
      y_vv = y_rv.clone()
  
      logprob = logp(y_rv, y_vv)
      assert_no_rvs(logprob)
      logp_fn = pytensor.function([loc, y_vv], logprob)
      logcdf_fn = pytensor.function([loc, y_vv], logcdf(y_rv, y_vv))
      icdf_fn = pytensor.function([loc, y_vv], icdf(y_rv, y_vv))
  
      loc_test_val = np.full(rv_size, 4.0)
      y_test_val = np.full(rv_size, 1.0)
      q_test_val = np.full(rv_size, 0.7)
      np.testing.assert_allclose(
          logp_fn(loc_test_val, y_test_val),
          sp.stats.norm(loc_test_val, 1).logpdf(y_test_val),
      )
      np.testing.assert_allclose(
          logcdf_fn(loc_test_val, y_test_val),
          sp.stats.norm(loc_test_val, 1).logcdf(y_test_val),
      )
      np.testing.assert_allclose(
          icdf_fn(loc_test_val, q_test_val),
          sp.stats.norm(loc_test_val, 1).ppf(q_test_val),
      )
  
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  import scipy
  import scipy.special
  from pytensor.graph.basic import equal_computations
  from pymc.distributions.continuous import Cauchy, ChiSquared
  from pymc.logprob.basic import conditional_logp, icdf, logcdf, logp
  from pymc.logprob.transforms import ArccoshTransform, ArcsinhTransform, ArctanhTransform, ChainedTransform, CoshTransform, ErfcTransform, ErfcxTransform, ErfTransform, ExpTransform, LocTransform, LogTransform, ScaleTransform, SinhTransform, TanhTransform, Transform
  from pymc.logprob.utils import ParameterValueError
  from pymc.testing import Rplusbig, Vector, assert_no_rvs
  from tests.distributions.test_transform import check_jacobian_det
label_desc: Use image node_id 1 for calling the TestLocScaleRVTransform obj's underlying member method code with example usage: obj.test_loc_transform_rv(rv_size, loc_type, addition) without return types