class_docstr: Small class for inspecting a HDF5 file and retrieve its metadata/header data.
class_docstr_tok: ["Small","class","for","inspecting","a","HDF5","file","and","retrieve","its","metadata\/header","data","."]
code: def _get_reference(self, hf, ref):
      try:
          return [self._get_reference(hf, elt) for elt in ref]
      except TypeError:
          if isinstance(ref, h5py.h5r.Reference):
              ref_name = h5py.h5r.get_name(ref, hf.id)
              return hf[ref_name][()]
  
file_path: satpy/satpy/readers/hdf5_utils.py
imports: import logging
  import dask.array
  import h5py
  import numpy
  import xarray
  from satpy.readers import open_file_or_filename
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.readers.utils import np2str
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 4 for calling the HDF5FileHandler obj's underlying member method code with example usage: obj._get_reference(hf, ref) and returns: unknown, hf