parameters: (self, **kwargs)
return_statement: return retval
docstring: Update mount object's attributes and attempt remount with these
          new values for these attrbiutes.
  
          1. Run umount_wait().
          2. Run update_attrs().
          3. Run mount().
  
          Accepts arguments of self.mount() and self.update_attrs() with 1
          exception: wait accepted too which can be True or False.
docstring_summary: Update mount object's attributes and attempt remount with these
          new values for these attrbiutes.
docstring_tokens: Update mount object s attributes and attempt remount with these new values for these attrbiutes .
function: def remount(self, **kwargs):
          """
          Update mount object's attributes and attempt remount with these
          new values for these attrbiutes.
  
          1. Run umount_wait().
          2. Run update_attrs().
          3. Run mount().
  
          Accepts arguments of self.mount() and self.update_attrs() with 1
          exception: wait accepted too which can be True or False.
          """
          self.umount_wait()
          assert not self.mounted
  
          mntopts = kwargs.pop('mntopts', [])
          check_status = kwargs.pop('check_status', True)
          wait = kwargs.pop('wait', True)
  
          self.update_attrs(**kwargs)
  
          retval = self.mount(mntopts=mntopts, check_status=check_status)
          # avoid this scenario (again): mount command might've failed and
          # check_status might have silenced the exception, yet we attempt to
          # wait which might lead to an error.
          if retval is None and wait:
              self.wait_until_mounted()
  
          return retval
function_tokens: def remount ( self , * * kwargs ) : self . umount_wait ( ) assert not self . mounted mntopts = kwargs . pop ( 'mntopts' , [ ] ) check_status = kwargs . pop ( 'check_status' , True ) wait = kwargs . pop ( 'wait' , True ) self . update_attrs ( * * kwargs ) retval = self . mount ( mntopts = mntopts , check_status = check_status ) # avoid this scenario (again): mount command might've failed and # check_status might have silenced the exception, yet we attempt to # wait which might lead to an error. if retval is None and wait : self . wait_until_mounted ( ) return retval