code: def test_stretch_0_to_1(self):
      a = np.array([0.8, 0.5, 0.0, -0.2, -0.3, 0.4])
      out = stretch_0_to_1(a)
      np.testing.assert_almost_equal(
          out,
          np.array(
              [
                  1.0,
                  0.8125,
                  0.5,
                  0.16666667,
                  0.0,
                  0.75,
              ]
          ),
      )
      np.testing.assert_almost_equal(
          a, np.array([0.8, 0.5, 0.0, -0.2, -0.3, 0.4])
      )
  
      out = stretch_0_to_1(np.array([]))
      np.testing.assert_almost_equal(out, np.array([]))
  
      out = stretch_0_to_1(np.array([1, 0.5]))
      np.testing.assert_almost_equal(out, np.array([1.0, 0.75]))
  
      out = stretch_0_to_1(np.array([-1, -0.5]))
      np.testing.assert_almost_equal(out, np.array([0, 0.25]))
  
imports: from unittest import TestCase
  import numpy
  from scattertext import stretch_0_to_1
label_desc: Use image node_id 1 for calling the TestScalers obj's underlying member method code with example usage: obj.test_stretch_0_to_1() without return types