original_docstring: 
      Get the data elements from the hdf5 datasets and groups
      Input: HDF5 file
      Output: Items and its path of data elements
      
docstring: Get the data elements from the hdf5 datasets and groups
  Input: HDF5 file
  Output: Items and its path of data elements
docstring_tokens: Get the data elements from the hdf5 datasets and groups Input : HDF5 file Output : Items and its path of data elements
code: def h5_diter(g, prefix=''):
      '''
      Get the data elements from the hdf5 datasets and groups
      Input: HDF5 file
      Output: Items and its path of data elements
      '''
      for key, item in g.items():
          path = '{}/{}'.format(prefix, key)
          if isinstance(item, h5.Dataset):  # test for dataset
              yield (path, item)
          elif isinstance(item, h5.Group):  # test for group (go down)
              yield from h5_diter(item, path)
code_tokens: def h5_diter ( g , prefix = '' ) : for key , item in g . items ( ) : path = '{}/{}' . format ( prefix , key ) if isinstance ( item , h5 . Dataset ) : yield ( path , item ) elif isinstance ( item , h5 . Group ) : yield from h5_diter ( item , path )
short_docstring: Get the data elements from the hdf5 datasets and groups
  Input: HDF5 file
  Output: Items and its path of data elements
short_docstring_tokens: Get the data elements from the hdf5 datasets and groups Input : HDF5 file Output : Items and its path of data elements
comment: '''
      Get the data elements from the hdf5 datasets and groups
      Input: HDF5 file
      Output: Items and its path of data elements
      '''$SEP$# test for dataset$SEP$# test for group (go down)