code: def confirm_updated(value, check_fun, normalize_ret=False, wait=5):
      '''
      Wait up to ``wait`` seconds for a system parameter to be changed before
      deciding it hasn't changed.
  
      :param str value: The value indicating a successful change
  
      :param function check_fun: The function whose return is compared with
          ``value``
  
      :param bool normalize_ret: Whether to normalize the return from
          ``check_fun`` with ``validate_enabled``
  
      :param int wait: The maximum amount of seconds to wait for a system
          parameter to change
      '''
      for i in range(wait):
          state = validate_enabled(check_fun()) if normalize_ret else check_fun()
          if value in state:
              return True
          time.sleep(1)
      return Falsf confirm_updated(value, check_fun, normalize_ret=False, wait=5):
      '''
      Wait up to ``wait`` seconds for a system parameter to be changed before
      deciding it hasn't changed.
  
      :param str value: The value indicating a successful change
  
      :param function check_fun: The function whose return is compared with
          ``value``
  
      :param bool normalize_ret: Whether to normalize the return from
          ``check_fun`` with ``validate_enabled``
  
      :param int wait: The maximum amount of seconds to wait for a system
          parameter to change
      '''
      for i in range(wait):
          state = validate_enabled(check_fun()) if normalize_ret else check_fun()
          if value in state:
              return True
          time.sleep(1)
      return False
docs: Wait up to ``wait`` seconds for a system parameter to be changed before
      deciding it hasn't changed.
  
      :param str value: The value indicating a successful change
  
      :param function check_fun: The function whose return is compared with
          ``value``
  
      :param bool normalize_ret: Whether to normalize the return from
          ``check_fun`` with ``validate_enabled``
  
      :param int wait: The maximum amount of seconds to wait for a system
          parameter to change