code: def ParseOptions(cls, options, configuration_object):
      
      if not isinstance(configuration_object, tools.CLITool):
        raise errors.BadConfigObject(
            'Configuration object is not an instance of CLITool')
  
      storage_format = cls._ParseStringOption(options, 'storage_format')
      if not storage_format:
        raise errors.BadConfigOption('Unable to determine storage format.')
  
      if storage_format not in definitions.STORAGE_FORMATS:
        raise errors.BadConfigOption(
            'Unsupported storage format: {0:s}'.format(storage_format))
  
      setattr(configuration_object, '_storage_format', storage_format)
docs: Parses and validates options.
  
      Args:
        options (argparse.Namespace): parser options.
        configuration_object (CLITool): object to be configured by the argument
            helper.
  
      Raises:
        BadConfigObject: when the configuration object is of the wrong type.
        BadConfigOption: if the storage format is not defined or supported.