code: def test_ppf_with_loc(dist, args):
      try:
          distfn = getattr(stats, dist)
      except TypeError:
          distfn = dist
      # check with a negative, no and positive relocation.
      np.random.seed(1942349)
      re_locs = [
          np.random.randint(-10, -1),
          0,
          np.random.randint(1, 10),
      ]
      _a, _b = distfn.support(*args)
      for loc in re_locs:
          npt.assert_array_equal(
              [_a - 1 + loc, _b + loc],
              [
                  distfn.ppf(0.0, *args, loc=loc),
                  distfn.ppf(1.0, *args, loc=loc),
              ],
          )
  
imports: import numpy.testing
  from numpy.testing import assert_allclose
  import numpy
  import pytest
  from scipy import stats
  from .common_tests import check_normalization, check_moment, check_mean_expect, check_var_expect, check_skew_expect, check_kurt_expect, check_entropy, check_private_entropy, check_edge_support, check_named_args, check_random_state_property, check_pickling, check_rvs_broadcast, check_freezing
  from scipy.stats._distr_params import distdiscrete, invdistdiscrete
  from scipy.stats._distn_infrastructure import rv_discrete_frozen
label_desc: Use image node_id 5 for calling a global function with example usage: test_ppf_with_loc(dist, args) without return types