@require_context
def group_types_get_by_name_or_id(context, group_type_list):
 req_group_types = []
 for grp_t in group_type_list:
  if (not uuidutils.is_uuid_like(grp_t)):
   grp_type = _group_type_get_by_name(context, grp_t)
  else:
   grp_type = _group_type_get(context, grp_t)
  req_group_types.append(grp_type)
 return req_group_types

@ require_context def group_types_get_by_name_or_id ( context , group_type_list ) : req_group_types = [ ] for grp_t in group_type_list : if ( not uuidutils . is_uuid_like ( grp_t ) ) : grp_type = _group_type_get_by_name ( context , grp_t ) else : grp_type = _group_type_get ( context , grp_t ) req_group_types . append ( grp_type ) return req_group_types
get group types by name or id .