              if opt in cmd:
                  return cmd[cmd.index(opt) + 1]
          return None
  
      def get_state_file(self):
          """ Return the state file in a string """
          if not self.is_training or self.model_dir is None or self.trainer is None:
              return ""
          fname = os.path.join(self.model_dir, "{}_state.json".format(self.trainer))
          if not os.path.isfile(fname):
              return ""
  
 
</s> remove         fname = os.path.join(self.model_dir, "{}_state.json".format(self.trainer))
 </s> add         fname = os.path.join(self._model_dir, "{}_state.json".format(self._trainer)) </s> remove     def get_arg(*args):
        """ Return the value for a given option from sys.argv. Returns None if not found """
 </s> add     def _get_arg(*args):
        """ Obtain the value for a given command line option from sys.argv.

        Returns
        -------
        str or ``None``
            The value of the given command line option, if it exists, otherwise ``None``
        """ </s> remove     def format_text(key, val):
        """Format the text for output """
        return "{0: <25} {1}\n".format(key.strip() + ":", val.strip())


class State():
    """ State file for training command """
 </s> add     def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """ </s> remove     def parse_ini(self, config_file):
        """ Parse an INI file converting it to a dict """
 </s> add     def _parse_ini(self, config_file):
        """ Parse an ``.ini`` formatted config file into a human readable format.

        Parameters
        ----------
        config_file: str
            The path to the config.ini file

        Returns
        -------
        str
            The current configuration in the config file formatted in a human readable format
        """ </s> remove         return self.parse_configs(config_files)
 </s> add         return self._parse_configs(config_files)
    def _get_state_file(self):
        """ Parses the model's state file and compiles the contents into a human readable string.

        Returns
        -------
        str
            The state file formatted into a human readable format
        """
        if not self._is_training or self._model_dir is None or self._trainer is None:
              if opt in cmd:
                  return cmd[cmd.index(opt) + 1]
          return None
  
    def _get_state_file(self):
        """ Parses the model's state file and compiles the contents into a human readable string.

        Returns
        -------
        str
            The state file formatted into a human readable format
        """
        if not self._is_training or self._model_dir is None or self._trainer is None:
    def _get_state_file(self):
        """ Parses the model's state file and compiles the contents into a human readable string.

        Returns
        -------
        str
            The state file formatted into a human readable format
        """
        if not self._is_training or self._model_dir is None or self._trainer is None:
    def _get_state_file(self):
        """ Parses the model's state file and compiles the contents into a human readable string.

        Returns
        -------
        str
            The state file formatted into a human readable format
        """
        if not self._is_training or self._model_dir is None or self._trainer is None:
              return ""
          fname = os.path.join(self.model_dir, "{}_state.json".format(self.trainer))
          if not os.path.isfile(fname):
              return ""
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Core Updates (#1015)

- Remove lib.utils.keras_backend_quiet and replace with get_backend() where relevant
- Document lib.gpu_stats and lib.sys_info
- Remove call to GPUStats.is_plaidml from convert and replace with get_backend()
- lib.gui.menu - typofix 
lib/sysinfo.py