def METHOD_NAME(self, props, component):
    object_type = props.get('type')
    object_id = safe_encode(props.get('id', ''))
    if (object_type, object_id) in self.exceptions:
        values, probs = self.exceptions[(object_type, object_id)]
        return values, probs
    name_keys, probs = self.component_name_keys.get(component, (self.name_keys, self.name_key_probs))
    return name_keys, probs