code: def test_series_scale():
      arr = pd.Series(np.random.randint(low=-10, high=10, size=100))
      sr = cudf.Series(arr)
  
      vmin = arr.min()
      vmax = arr.max()
      scaled = (arr - vmin) / (vmax - vmin)
      assert scaled.min() == 0
      assert scaled.max() == 1
      assert_eq(sr.scale(), scaled)
  
imports: from concurrent.futures import ThreadPoolExecutor
  import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.datasets import randomdata
  from cudf.testing._utils import _create_cudf_series_float64_default, _create_pandas_series_float64_default, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 6 for calling a global function with example usage: test_series_scale() without return types