Check if group in netcdf4 Dataset code example
Example 1: how to open a dataset in netcdf4
import netCDF4
ds = netCDF4.Dataset(/path_to_file/file_name.nc)
Example 2: python nc group variables
nc_f0 = Dataset('path_to_nc','r')
var = nc_f0.groups['group_name'].variables['var_name']