def get_h5_data_group(grp_name, parent='/', f=get_h5_data_file()):
 existed = True
 try:
  group = f.getNode((parent + grp_name))
 except:
  existed = False
  msg = 'data for {} tests'.format((grp_name + '.py'))
  group = f.create_group(parent, grp_name, msg)
 return (existed, group)

def get_h5_data_group ( grp_name , parent = '/' , f = get_h5_data_file ( ) ) : existed = True try : group = f . getNode ( ( parent + grp_name ) ) except : existed = False msg = 'data for {} tests' . format ( ( grp_name + '.py' ) ) group = f . create_group ( parent , grp_name , msg ) return ( existed , group )
try to fetch the group named grp_name from the file f .