code: def master_key_required(func):
      '''decorator describing methods that require the master key'''
      def ret(obj, *args, **kw):
          conn = ACCESS_KEYS
          if not (conn and conn.get('master_key')):
              message = '%s requires the master key' % func.__name__
              raise core.ParseError(message)
          func(obj, *args, **kw)
      return ref master_key_required(func):
      '''decorator describing methods that require the master key'''
      def ret(obj, *args, **kw):
          conn = ACCESS_KEYS
          if not (conn and conn.get('master_key')):
              message = '%s requires the master key' % func.__name__
              raise core.ParseError(message)
          func(obj, *args, **kw)
      return ret
docs: decorator describing methods that require the master key