class_docstr: Handle reading of generic image files.
class_docstr_tok: ["Handle","reading","of","generic","image","files","."]
docstr: Get a dataset from the file.
docstr_tok: ["Get","a","dataset","from","the","file","."]
code: def get_dataset(self, key, info):
      """Get a dataset from the file."""
      ds_name = self.dataset_name if self.dataset_name else key["name"]
      logger.debug("Reading '%s.'", ds_name)
      data = self.file_content[ds_name]
  
      # Mask data if necessary
      try:
          data = _mask_image_data(data, info)
      except ValueError as err:
          logger.warning(err)
  
      data.attrs.update(key.to_dict())
      data.attrs.update(info)
      return data
  
file_path: satpy/satpy/readers/generic_image.py
imports: import logging
  import dask.array
  import numpy
  import rasterio
  import xarray
  from pyresample import utils
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 6 for calling the GenericImageFileHandler obj's underlying member method code with example usage: obj.get_dataset(key, info) and returns: data