class_docstr: Tests for AdaptiveScalarEncoder
code: def setUp(self):
      # forced: it's strongly recommended to use w>=21, in the example we force
      # skip the check for readibility
      self._l = AdaptiveScalarEncoder(
          name="scalar",
          n=14,
          w=5,
          minval=1,
          maxval=10,
          periodic=False,
          forced=True,
      )
  
file_path: nupic-legacy/tests/unit/nupic/encoders/adaptivescalar_test.py
imports: import tempfile
  import unittest
  import numpy
  from nupic.data import SENTINEL_VALUE_FOR_MISSING_DATA
  from nupic.encoders.adaptive_scalar import AdaptiveScalarEncoder
  from nupic.encoders.base import defaultDtype
label_desc: Use image node_id 1 for calling the AdaptiveScalarTest obj's underlying member method code with example usage: obj.setUp() without return types