code: def control_number(endpoint):
      
      def _control_number(self, key, value):
          self['self'] = get_record_ref(int(value), endpoint)
          return int(value)
  
      return _control_number
docs: Populate the ``control_number`` key.
  
      Also populates the ``self`` key through side effects.