code: def roll_edits_hdfs(self, nameservice=None):
      
      args = dict()
      if nameservice:
        args['nameservice'] = nameservice
  
      return self._cmd('hdfsRollEdits', data=args)
docs: Roll the edits of an HDFS NameNode or Nameservice.
  
      @param nameservice: Nameservice whose edits should be rolled.
                          Required only with a federated HDFS.
      @return: Reference to the submitted command.
      @since: API v3