code: def dataSetUnit(h5Dataset):
      
      attributes = h5Dataset.attrs
      if not attributes:
          return '' # a premature optimization :-)
  
      for key in ('unit', 'units', 'Unit', 'Units', 'UNIT', 'UNITS'):
          if key in attributes:
              # In Python3 the attributes are byte strings so we must decode them
              # This a bug in h5py, see https://github.com/h5py/h5py/issues/379
              return to_string(attributes[key])
      # Not found
      return ''
docs: Returns the unit of the h5Dataset by looking in the attributes.
  
          It searches in the attributes for one of the following keys:
          'unit', 'units', 'Unit', 'Units', 'UNIT', 'UNITS'. If these are not found, the empty
          string is returned.
  
          Always returns a string