is_type_valid_pm
return is_type_valid_pm(type, parent, child);
if (!is_type_valid_pm(type, partition))