code: def get_fill_value(dataset):
      
      if np.issubdtype(dataset.dtype, np.integer):
          return dataset.attrs.get('_FillValue', np.nan)
      return np.nan
docs: Get the fill value of the *dataset*, defaulting to np.nan.