def _get_tag_int(fid, node, name, id_):
 tag = find_tag(fid, node, id_)
 if (tag is None):
  fid.close()
  raise ValueError((name + ' tag not found'))
 return int(tag.data)

def _get_tag_int ( fid , node , name , id_ ) : tag = find_tag ( fid , node , id_ ) if ( tag is None ) : fid . close ( ) raise ValueError ( ( name + ' tag not found' ) ) return int ( tag . data )
check we have an appropriate tag .