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","."]
code: def _read_dataset_in_file(self, dataset_name):
      if dataset_name not in self.sd.datasets():
          error_message = "Dataset name {} not included in available datasets {}".format(
              dataset_name, self.sd.datasets()
          )
          raise KeyError(error_message)
  
      dataset = self.sd.select(dataset_name)
      return dataset
  
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 11 for calling the HDFEOSBaseFileReader obj's underlying member method code with example usage: obj._read_dataset_in_file(dataset_name) and returns: dataset