code: def RegisterIntKey(cls, key, atomid, min_value=0, max_value=(2 ** 16) - 1):
          
  
          def getter(tags, key):
              return list(map(text_type, tags[atomid]))
  
          def setter(tags, key, value):
              clamp = lambda x: int(min(max(min_value, x), max_value))
              tags[atomid] = [clamp(v) for v in map(int, value)]
  
          def deleter(tags, key):
              del(tags[atomid])
  
          cls.RegisterKey(key, getter, setter, deleter)
docs: Register a scalar integer key.