code: def test_support_truncation(distname, args):
      # similar test for truncation
      dist = getattr(stats, distname)(*args)
      rng = FastGeneratorInversion(dist, domain=(0.5, 0.7))
      assert_array_equal(rng.support(), (0.5, 0.7))
      rng.loc = 1
      rng.scale = 2
      assert_array_equal(rng.support(), (1 + 2 * 0.5, 1 + 2 * 0.7))
  
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 11 for calling a global function with example usage: test_support_truncation(distname, args) without return types