code: def set_id(self, dxid):
          '''
          :param dxid: New job ID to be associated with the handler (localjob IDs also accepted for local runs)
          :type dxid: string
  
          Discards the currently stored ID and associates the handler with *dxid*
          '''
          if dxid is not None:
              if not (isinstance(dxid, basestring) and dxid.startswith('localjob-')):
                  # localjob IDs (which do not follow the usual ID
                  # syntax) should be allowed; otherwise, follow the
                  # usual syntax checking
                  verify_string_dxid(dxid, self._class)
          self._dxid = dxif set_id(self, dxid):
          '''
          :param dxid: New job ID to be associated with the handler (localjob IDs also accepted for local runs)
          :type dxid: string
  
          Discards the currently stored ID and associates the handler with *dxid*
          '''
          if dxid is not None:
              if not (isinstance(dxid, basestring) and dxid.startswith('localjob-')):
                  # localjob IDs (which do not follow the usual ID
                  # syntax) should be allowed; otherwise, follow the
                  # usual syntax checking
                  verify_string_dxid(dxid, self._class)
          self._dxid = dxid
docs: :param dxid: New job ID to be associated with the handler (localjob IDs also accepted for local runs)
          :type dxid: string
  
          Discards the currently stored ID and associates the handler with *dxid*