code: def _ParseStorageMediaImageOptions(self, options):
      
      self._partitions = getattr(options, 'partitions', None)
      if self._partitions:
        try:
          self._ParseVolumeIdentifiersString(self._partitions, prefix='p')
        except ValueError:
          raise errors.BadConfigOption('Unsupported partitions')
  
      self._volumes = getattr(options, 'volumes', None)
      if self._volumes:
        try:
          self._ParseVolumeIdentifiersString(self._volumes, prefix='apfs')
        except ValueError:
          raise errors.BadConfigOption('Unsupported volumes')
docs: Parses the storage media image options.
  
      Args:
        options (argparse.Namespace): command line arguments.
  
      Raises:
        BadConfigOption: if the options are invalid.