code: def getSpec(cls):
      
      spec = {
        "description": CoordinateSensorRegion.__doc__,
        "singleNodeOnly": True,
        "inputs": {},  # input data is added to queue via "addDataToQueue" command
        "outputs": {
          "dataOut": {
            "description": "Encoded coordinate SDR.",
            "dataType": "Real32",
            "count": 0,
            "regionLevel": True,
            "isDefaultOutput": True,
          },
          "resetOut": {
            "description": "0/1 reset flag output.",
            "dataType": "UInt32",
            "count": 1,
            "regionLevel": True,
            "isDefaultOutput": False,
          },
          "sequenceIdOut": {
            "description": "Sequence ID",
            "dataType": "UInt32",
            "count": 1,
            "regionLevel": True,
            "isDefaultOutput": False,
          },
        },
        "parameters": {
          "activeBits": {
            "description": "The number of bits that are set to encode a single "
                           "coordinate value",
            "dataType": "uint",
            "accessMode": "ReadWrite",
            "count": 1,
            "defaultValue": 21
          },
          "outputWidth": {
            "description": "Size of output vector",
            "dataType": "UInt32",
            "accessMode": "ReadWrite",
            "count": 1,
            "defaultValue": 1000
          },
          "radius": {
            "description": "Radius around 'coordinate'",
            "dataType": "UInt32",
            "accessMode": "ReadWrite",
            "count": 1,
            "defaultValue": 2
          },
          "verbosity": {
            "description": "Verbosity level",
            "dataType": "UInt32",
            "accessMode": "ReadWrite",
            "count": 1
          },
        },
        "commands": {
          "addDataToQueue": {
            "description": CoordinateSensorRegion.addDataToQueue.__doc__,
          },
          "addResetToQueue": {
            "description": CoordinateSensorRegion.addResetToQueue.__doc__,
          }
        },
      }
  
      return spec
docs: Return base spec for this region. See base class method for more info.