class_docstr: Base file handler for HDF EOS data for both L1b and L2 products.
class_docstr_tok: ["Base","file","handler","for","HDF","EOS","data","for","both","L1b","and","L2","products","."]
docstr: Load the dataset from HDF EOS file.
docstr_tok: ["Load","the","dataset","from","HDF","EOS","file","."]
code: def load_dataset(self, dataset_name, is_category=False):
      """Load the dataset from HDF EOS file."""
      from satpy.readers.hdf4_utils import from_sds
  
      dataset = self._read_dataset_in_file(dataset_name)
      chunks = self._chunks_for_variable(dataset)
      dask_arr = from_sds(dataset, chunks=chunks)
      dims = ("y", "x") if dask_arr.ndim == 2 else None
      data = xr.DataArray(
          dask_arr, dims=dims, attrs=dataset.attributes()
      )
      data = self._scale_and_mask_data_array(
          data, is_category=is_category
      )
  
      return data
  
imports: from __future__ import annotations
  import logging
  import re
  from ast import literal_eval
  from contextlib import suppress
  from datetime import datetime
  import numpy
  import xarray
  from pyhdf.error import HDF4Error
  from pyhdf.SD import SD
  from satpy import DataID
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import normalize_low_res_chunks
label_desc: Use image node_id 12 for calling the HDFEOSBaseFileReader obj's underlying member method code with example usage: obj.load_dataset(dataset_name, is_category) and returns: data